Replies To: Search for words and change format

Re: Search for words and change format

Posted 06 February 2013 - 03:12 PM

It should be a pretty simple use of streamreader and streamwriter.

Using stream reader open up the file for your source.. in a while loop read each line.. if it starts with name then use the string namespace's "substring" to get the value.. store that in a temp variable.. and then look for 'age'.. do the same sort of substring to get that value.. then use streamwriter to append those two values into another file.