for example, i have a txt file that reads:
number of items: 2
number of zombies: 3
....
i want to write a method that increments just the numbers, and leave the "number of items" and "number of zombies" alone. is there any way to do this?
i can easily read to a specific line, but i can't figure out how to write in it.