Problem in Rfile
| Tue, 2007-06-26 13:49 | |
|
Hi to all, eg. if i create a file temp.txt and write a value "1" in to this after reading this value i want to remove this from file and write another value "2". Please tell me what should be the good way to do this. Thanks in Advance |
|






Forum posts: 21
Have a look at the file Handles Replace method. i hope that will solve ur problem.
Forum posts: 285
If you have simple and less operations on file then you can use RFile. Google for RFile and you will find many links which talks about RFile. If your app does heavy read/write operations then you can go for stores.
Cheers,
Sri
Forum posts: 73
I read all documents but there is no any method for removing(or overwriting) the previous data.
Thanks
Forum posts: 1210
Overwriting is simple: You re-position with the help of RFile::Seek() and write. Whatever was there before at that particular position in the file will be overwritten. Thus no need to "remove" something first.
René Brunner