Download MetaTrader 5

how to del a file's content ?

To add comments, please log in or register
LEE Chun Wing
831
LEE Chun Wing  

I need to write a csv file , but i must clear the content which   run last time

 

i have find  the handbook of mql5, --> but i just can find FileDelete, not suitable~~

how to achieve it ?

thanks 

Rashid Umarov
Admin
11993
Rashid Umarov  

See File Opening Flags:

There are some specific features of work when you specify read and write flags:

  • If FILE_READ is specified, an attempt is made to open an existing file. If a file does not exist, file opening fails, a new file is not created.
  • FILE_READ|FILE_WRITE – a new file is created if the file with the specified name does not exist.
  • FILE_WRITE –  the file is created again with a zero suze.


To add comments, please log in or register