How to read write text files

NegativeZero

Member
Joined
Jan 23, 2005
Messages
11
i just got net a couple days ago and i cant figure out how to read or wrie text files, i tried using what i new from vb6 but i couldnt get anything to work?? can anyone help me?
 
If youre using vb.net Youll do it kind of like this

You dim a filestream, and then set its value to New Filestream(filename)
Then (to read) youll dim a streamreader, and set its value to New Streamreader(filestreamname). for writing you use a streamwriter.

For all the functions of the streamreaders and writers, just type them and then a . to have intellisense bring up a list. Otherwise thats pretty much it

This could help: http://www.computerhelp.forum/showthread.php?t=148864
 

Similar threads

S
Replies
0
Views
57
sva0008
S
U
Replies
0
Views
53
Umair Aslam Bhatti
U
Back
Top