System.IO changing text file

ThinkingBeyond

New member
Joined
Apr 7, 2008
Messages
1
Programming Experience
1-3
Hi,

I have a program which holds details of members in a text file which i can display and add more members to using Streamwriter and Streamreader.

But I now need to be able admend details in the text file.

I need a way of finding the member using their member number in the text file and then i need to update their performance which is another exsisting line in the text file.

Any ideas please?

Regards,
Ben
 
Sounds like you should look into using a collection for this. You can read each line into a collection, modify the data as needed then simply write a whole new file when needed.
 
Back
Top