FileOpen . . . append . . .

 

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

 
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.

 

Hi Alain,

works fine!

Thanks
   Willbur


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

Reason: