Stream

  • Thread starter Thread starter Pai
  • Start date Start date
P

Pai

Hello there,

I have document a file in the C:\\ named test.doc.

I would like to read the contents of the file by assigning it to Stream class....

Stream fstream = ????

how do i achieve this....

any suggestions or help....

Kind Regards,
Srikanth Pai
 
How about:

using(StreamReader sr=new StreamReader(@"c:\test.doc")){
//read via sr.ReadLine()
}
 
Back
Top