Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. while ((line = reader.ReadLine()) != null)
  2. {
  3. list.Add(line); // Add to list.
  4. Console.WriteLine(line); // Write to console.
  5. }
  6.  
  7. while ((line = reader.ReadLine()) IsNot Nothing)
  8.  
  9. Do
  10. Dim line As String = reader.readLine()
  11. If line Is Nothing Then Exit Do
  12. Console.WriteLine(line)
  13. Loop
  14.  
  15. line = reader.ReadLine()
  16. Do Until line Is Nothing
  17. Console.WriteLine(line)
  18. line = reader.ReadLine()
  19. Loop
  20.  
  21. Let line = reader.ReadLine()
  22.  
  23. line = reader.ReadLine()
  24.  
  25. Do
  26. line = reader.ReadLine()
  27. If line Is Nothing Then Exit Do
  28. Console.WriteLine(line)
  29. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement