CSV: unable to write separator semicolon (';')

 

Hi everyone,

I'm not able to change separator when I create csv files, COMMA is always used as separator; I used the following: 

int Handle              = FileOpen("fileName", FILE_CSV|FILE_WRITE, );    // CSV created with COMMA separator
int Handle              = FileOpen("fileName", FILE_CSV|FILE_WRITE, ';'); // CSV created with COMMA separator
int Handle              = FileOpen("fileName", FILE_CSV|FILE_WRITE, ";"); // CSV created with COMMA separator
int Handle              = FileOpen("fileName", FILE_CSV|FILE_WRITE, "#"); // CSV created with COMMA separator
Any idea where I'm wrong?

I'm using MT4 4.00 build 1212 on Windows 10

Thanks a lot.

Danilo

 
Danilo Redaelli:

Hi everyone,

I'm not able to change separator when I create csv files, COMMA is always used as separator; I used the following: 

Any idea where I'm wrong?

I'm using MT4 4.00 build 1212 on Windows 10

Thanks a lot.

Danilo

Last build is 1220.

I think there is an other problem, this line SHOULD create a CSV with ; as separator.

int Handle              = FileOpen("fileName", FILE_CSV|FILE_WRITE, ';');

Please post code to reproduce the issue (code which compiles and can be run).

 
Alain Verleyen:

Last build is 1220.

I think there is an other problem, this line SHOULD create a CSV with ; as separator.

Please post code to reproduce the issue (code which compiles and can be run).

Thanks Alain!
Preparing the code, I got the error, code works as expected; my mistake!!! I'm sorry

Danilo

Reason: