Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- StreamReader reader = new StreamReader("D:\\test.txt");
- string s = reader.ReadLine();
- while (reader.EndOfStream != true)
- {
- if (reader.ReadLine().Length > s.Length)
- {
- s = reader.ReadLine();
- }
- //Console.WriteLine(reader.ReadLine());
- }
- Console.WriteLine(s);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement