How to erase the content of a file

 
GumRai:


Are you serious???

Your opening post in your very recent topic at

https://forum.mql4.com/71996

So you already know how to do it.
Lol... . Funny. Actually, it did not occur to me. Now I know I should figure it out by writing an empty string to all the records in the file. Thanks.
 
macpee:
How can I erase the content of a file, what function to use please. Thank you in advance.


Are you serious???

Your opening post in your very recent topic at

https://forum.mql4.com/71996

Each time I read from a file and close the file, the file becomes empty the next time I want to read or write to the file. What mechanism or function can I use to retain the content of the file in order to add to the existing content of the file or read the file again on the next opening of the file. I want the file to retain its content even when I restart the computer. Thank you in advance.

So you already know how to do it.
 
macpee:
Lol... . Funny. Actually, it did not occur to me. Now I know I should figure it out by writing an empty string to all the records in the file. Thanks.
nope; you call somewhere in your program FileOpen  but use FILE_WRITE
 
Demos:
nope; you call somewhere in your program FileOpen  but use FILE_WRITE
Yes you are right @Demos, you guys are very good with details.
Reason: