Edit line in a Text File

wythat

New member
Joined
Jun 23, 2009
Messages
1
Programming Experience
Beginner
Hi

I have a text file that has configuration paramaters in it.I need to replace a word after the "=" in an existing text file something like below:


usemodel = modelA

At the start of the program, the user will be asked what model they want to
use. (example modelA, modelB, modelC). Depending what they chose, the program will then open the config text file, search the usermodel entry and replace the line to the model they've chosen.
Can I ask how I do this in vb.net?

Thanks
 

Latest posts

Back
Top