TextReader reader = File.OpenText(@"C:\data\file.xml"); // Read a line at a time until we reach the end of file while (reader.Peek( ) != -1) { string line = reader.ReadLine( ); Console.WriteLine(line); } reader.Close( );
Copyright � 2010 Dotfluent Network. Use of this web site constitutes acceptance of the w3mentor Terms of Use and Privacy Policy.