Jun 3, 2011
I am making a program for work, i have it partly coded, unfortunately i don't have a wifi connection for my laptop right now which makes it hard to add my code here. What i am trying to do is have the user pull in a text file from anywhere on the computer using a open file box that pops up, i got that part, to make sure that is working i have a textbox that reads the data of that text file, it gets pulled in fine using a stream reader. Now what i need to do is search the text file for certain values, and depending on the selected item in the listbox which is on another form, change that value in the text file, im guessing i will need to use a stream writer, and ive seen examples used based on the file location(C:....) but in my case im not sure how to do it.
View 15 Replies