Connecting Tech Pros Worldwide Help | Site Map

class for open/write/read text file?

Wanjun Yu
Guest
 
Posts: n/a
#1: Oct 24 '06
What is the class name for open/write/read a text file? I can't find it in
the reference book. Thanks!

WJ


Tom Porterfield
Guest
 
Posts: n/a
#2: Oct 24 '06

re: class for open/write/read text file?


Wanjun Yu wrote:
Quote:
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

Wanjun Yu
Guest
 
Posts: n/a
#3: Oct 24 '06

re: class for open/write/read text file?


Thanks!

Wanjun

"Tom Porterfield" <tpporter@mvps.orgwrote in message
news:%23gBLt349GHA.1200@TK2MSFTNGP02.phx.gbl...
Quote:
Wanjun Yu wrote:
Quote:
>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

Closed Thread