sconly
11-22-2011, 04:05 AM
Is it possible to open a text file for reading and writing at the same time?
For example, I've got a text file and the only test in it is a reference number. I want to open the file, read the number, overwrite the number with a new one and then save the file. All in one fell swoop.
Is that possible or do i have to open the file for read, close it, then reopen for write and then save it?
Thanks.
For example, I've got a text file and the only test in it is a reference number. I want to open the file, read the number, overwrite the number with a new one and then save the file. All in one fell swoop.
Is that possible or do i have to open the file for read, close it, then reopen for write and then save it?
Thanks.