Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ReadFile
- {
- class Program
- {
- static void Main(string[] args)
- {
- string filePath = @"C:\Users\Patrick\Desktop\challenge.txt";
- using (TextReader reader = new StreamReader(filePath))
- {
- string line;
- while ((line = reader.ReadLine()) != null)
- {
- Console.WriteLine(line);
- }
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement