How to erase the content of a file

Back to topics list To post a new topic, please log in or register
avatar
66
macpee 2016.03.31 10:36
 
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.
avatar
Moderator
3418
GumRai 2016.03.31 10:51 #
 
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.
avatar
126
Demos 2016.03.31 16:35 #
 
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
avatar
66
macpee 2016.04.01 02:18 #
 
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.
Back to topics list  

To add comments, please log in or register