I want to append (concatenate) a string to each line in a text file.
My program should work like this.
Suppose I give the text file name in one textbox(the file may be present anywhere in the computer)
and in the other textbox if I give the string.

Now when I click a button, the resultant file(new file with appended string), should be stored again.

Please tell me how to get the file in the textbox from a dialog box.

Also can anyone supply some sample code for this file reading?