Download MetaTrader 5

FileOpen . . . append . . .

To add comments, please log in or register
Examine the Top MetaTrader 5 signals. Choose the best one and subscribe to it!
Willbur
198
Willbur 2016.04.12 15:44 

Hi There!

I am about to do my first steps in MQL5. Some things went fine others . . .

How to open a file in append mode?

There is no flag in the FileOpen.

Thanks a lot

    Willbur

Alain Verleyen
Moderator
30722
Alain Verleyen 2016.04.12 15:47  
Willbur:

Hi There!

I am about to do my first steps in MQL5. Some things went fine others . . .

How to open a file in append mode?

There is no flag in the FileOpen.

Thanks a lot

    Willbur

FILE_READ|FILE_WRITE

and FileSeek() to position at the right place.

Willbur
198
Willbur 2016.04.12 16:08  

Hi Alain,

works fine!

Thanks
   Willbur


FileOpen( ... FILE_READ|FILE_WRITE ....);
FileSeek(...,0,SEEK_END);
FileWrite(....);

To add comments, please log in or register