Download MetaTrader 5
To add comments, please log in or register
Start making profit using the Market. Publish your product!
LEE Chun Wing
LEE Chun Wing 2010.07.08 13:05 

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 ?


Rashid Umarov
Rashid Umarov 2010.07.08 14:00  

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