filestream?

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

What's considered the "correct" way to read and write text files in .net
2003? I see a filestream class but then it seems most access is done
via streamreader and streamwriter.
 
cj said:
What's considered the "correct" way to read and write text files in .net
2003? I see a filestream class but then it seems most access is done
via streamreader and streamwriter.

StreamReader/Writer are the ones I use all the time. I believe they
inherit from filestream class.

Chris
 
Ok, sometimes this is pretty confusing. As a side note I see the
richtextbox has it's own writing functionality as well.

I'll use the streamreader/writer too.
 
Chris said:
StreamReader/Writer are the ones I use all the time. I believe they
inherit from filestream class.

They don't inherit from this class. They are simply tools to access
text data in a stream. However, 'StreamReader'/'StreamWriter' are the
way to go when reading or writing text files.
 
Hi cj,

Thanks for your post!

The article below gives a brief introducation to I/O operation in .Net:
"Programming I/O with Streams in Visual Basic .NET"
http://msdn.microsoft.com/msdnmag/issues/05/11/BasicInstincts/default.aspx

Hope it helps

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top