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()
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top