I'm trying to create a program where I can write a string to the end of a certain line in a text file.
For example, this is the text file with just a bunch of random numbers:
12 23
53 23
Now what if I had a program that adds another two-digit number to the end of the first line (or any specified line), keeping in mind that the line will keep expanding if I kept running the program over again.
So after running the program, the text file would look something like this:
12 23 34
53 23
What are some ways to solve this?