Hi there, need to be able to create a text file that stores information like so :
this i have managed with a stream writer/append
1
aaaa
bbbbb
ccccccc
dddddddd
------------------
2
aaaa
bbbbb
cccccc
dddddddd
My problem is now i have to "Edit" an individual line within the text file.
e.g. The user enters number "2" in to a text box to verify which record they wish to access. (the streamreader needs to locate that record) The user then needs to change the entry details for "bbbbb" to "xxxxx" for that record only.
Any ideas on how to search a file for the identification number e.g. 2 and then modify the 2nd line down within that record.
thanks in advance
this i have managed with a stream writer/append
1
aaaa
bbbbb
ccccccc
dddddddd
------------------
2
aaaa
bbbbb
cccccc
dddddddd
My problem is now i have to "Edit" an individual line within the text file.
e.g. The user enters number "2" in to a text box to verify which record they wish to access. (the streamreader needs to locate that record) The user then needs to change the entry details for "bbbbb" to "xxxxx" for that record only.
Any ideas on how to search a file for the identification number e.g. 2 and then modify the 2nd line down within that record.
thanks in advance
Comment