Hi,
When I create a file, add some records to it, and then open it to read, I always lost the last record. If I manually open that text file, I can all the rcords are there, including the last record.
If I create the file, add some records to it, terminate thr program, then re-run and open it, all the record are there, including the last one.
Can anyone tell me what i am missind here?
I create the for writing with "w+b" mode. Add some records. And then open in "r+b" mode to read.
Thanks a bunch.
-kendel
When I create a file, add some records to it, and then open it to read, I always lost the last record. If I manually open that text file, I can all the rcords are there, including the last record.
If I create the file, add some records to it, terminate thr program, then re-run and open it, all the record are there, including the last one.
Can anyone tell me what i am missind here?
I create the for writing with "w+b" mode. Add some records. And then open in "r+b" mode to read.
Thanks a bunch.
-kendel