Try:
handle=FileOpen("toto.csv",FILE_CSV|FILE_WRITE);
Alternatively, if you are using Vista, and have UAC (User Account Control) turned on, then check here for your missing file:
C:\Users\<your account name>\AppData\Local\VirtualStore\Program Files\<MT4 install directory>\experts\files
CB
Is your OS Vista?
yes I gota VISTA, UKALGO
Try:
handle=FileOpen("toto.csv",FILE_CSV|FILE_WRITE);
Alternatively, if you are using Vista, and have UAC (User Account Control) turned on, then check here for your missing file:
C:\Users\<your account name>\AppData\Local\VirtualStore\Program Files\<MT4 install directory>\experts\files
CB
CB,
C:\Users\<your account name>\AppData\Local\VirtualStore\Program Files\<MT4 install directory>\experts\files
I don t have C:\Users\<your account name>\AppData that appear on the path that you mentionned (AppData doesn't exist )
Regards
UKALGO
PHY,
Thanks for the tip., I will try this.
Best Regards
UKALGO

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Guys
I would to write some data on a csv.file that i write on
I am able to open the file because I have the alert "i print" ( i assume i put the file correctly C:\Program Files\MetaTrader - Alpari UK\experts\files
my account on alpari is virtual ! however, When i check the csv file, nothing is written, i changed the right of printing but I have nothing inside....
Someone can help me ?
Thanks
UKALGO
ps; please find the code
int handle;
handle=FileOpen("toto.csv",FILE_CSV|FILE_WRITE,';');
if(handle>0)
{
FileWrite(handle, Bid, Ask, TimeCurrent());
FileClose(handle);
Alert("i print");
}
if(handle<0)
{
Alert("there s an issue");
}