Home C# C# code to read /stream a file
C# code to read /stream a file PDF Print E-mail
Written by Siva   
Sunday, 31 October 2010 02:11

This is sample C# code reads the Mytext.txt file in the same path where the c file exist.

Console.WriteLine("Reading the contents from the file");
StreamReader s = File.OpenText("Mytext.txt");
string read = null;
while ((read = s.ReadLine()) != null)



Featured Links:
Looking for job? Try HREmail.com
Want to have CMS based Websites?
Try siliconwebcreators.com to CMS based websites.
VM Solutions Inc
For best VM solutions..
Digital Procedure Inc.
Looking for Oracle /SAP /Weblogic Consulting services? visit digitalprocedure.com