hello, my head has been spinning around a way to do this. the best way to describe it would be with psudo code so...
ReplaceLine (string file, string keyword, string str) {
open file "file"
search for first line containing keyword "keyword"
replace that entire line with string "str"
save file "file"
return 0
}
very undetailed but, deliberately so. for instance for efficiency would you read in the entire file or using while(!file.eof()) go through line by line.
presumably the line by line search. but the replacing part is what is making me stuck.
anyway, thanks alot
Dead.Rabit