i have a premade textfile and i want to be able to change certain lines of it. i cant find any info on writing to certain lines of a txt file, can someone help?
One way is to read the file and store each line in an array or vector. You can then easily change the line you want and when you are finished you just write to everything to the file again.