By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,492 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,492 IT Pros & Developers. It's quick & easy.

class for open/write/read text file?

P: n/a
What is the class name for open/write/read a text file? I can't find it in
the reference book. Thanks!

WJ
Oct 24 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Wanjun Yu wrote:
What is the class name for open/write/read a text file? I can't find it in
the reference book. Thanks!
TextReader is the abstract base class for both StreamReader and
StringReader, in the System.IO namespace. See Reading Text from a File at
http://msdn.microsoft.com/library/en...xtFromFile.asp
and Writing Text to a File at
http://msdn.microsoft.com/library/en...TextToFile.asp.
--
Tom Porterfield

Oct 24 '06 #2

P: n/a
Thanks!

Wanjun

"Tom Porterfield" <tp******@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Wanjun Yu wrote:
>What is the class name for open/write/read a text file? I can't find it
in
the reference book. Thanks!

TextReader is the abstract base class for both StreamReader and
StringReader, in the System.IO namespace. See Reading Text from a File at
http://msdn.microsoft.com/library/en...xtFromFile.asp
and Writing Text to a File at
http://msdn.microsoft.com/library/en...TextToFile.asp.
--
Tom Porterfield

Oct 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.