M Makuto9 New member Jan 9, 2011 #1 How do I clear the contents of a file in r+ mode after reading the file? All I need to do is read the current number in the file, change that number, and write the new number into the file (overwriting the previous number). How can I do this?
How do I clear the contents of a file in r+ mode after reading the file? All I need to do is read the current number in the file, change that number, and write the new number into the file (overwriting the previous number). How can I do this?