Download MetaTrader 5

FileOpen delimiter problem?

To add comments, please log in or register
Sell your CPU capacity and earn money!
Mihai Ionescu
1300
Mihai Ionescu 2011.06.10 19:37 

I tried to open a file:

f=FileOpen("ranges.log",FILE_WRITE|FILE_CSV|FILE_ANSI,delimiter=',');

but it throws error:

'delimiter' - undeclared identifier     test.mq5        716     73

 

It's the same if I delete FILE_WRITE and FILE_ANSI

Is this a bug? 

Documentation on MQL5: Standard Constants, Enumerations and Structures / Input/Output Constants / File Opening Flags
  • www.mql5.com
Standard Constants, Enumerations and Structures / Input/Output Constants / File Opening Flags - Documentation on MQL5
Karlis Balcers
6664
Karlis Balcers 2011.06.10 19:41  

You do not need to write "delimiter":

f=FileOpen("ranges.log",FILE_WRITE|FILE_CSV|FILE_ANSI,',');

 

Mihai Ionescu
1300
Mihai Ionescu 2011.06.10 20:03  

of course!

mixed up influences from other languages than c

thank you 

To add comments, please log in or register