Download MetaTrader 5
To add comments, please log in or register
Have you developed a trading robot? Publish it in the Market and make profit!
ayoublaser
99
ayoublaser 2015.07.04 01:27 

I want to open a file in Téléchargements

how can i do this

string filename=Téléchargements
int handle=FileOpen(filename,FILE_WRITE|FILE_CSV);

JD4
1101
JD4 2015.07.04 05:30  
You also need to put the path in there somewhere, for where ever the file is located.  I am not sure of the coding to do it.
whroeder1
13597
whroeder1 2015.07.04 10:57  
string filename="Téléchargements\\file.csv";
int handle=FileOpen(filename,FILE_WRITE|FILE_CSV);

Assuming you have a folder in dataPath\MQL4\files\Téléchargements. Data Structure in MetaTrader 4 Build 600 and Higher - MQL4 Articles 17.02.2014

If that is a folder else where, you can't do it directly with MT4.

ayoublaser
99
ayoublaser 2015.07.04 11:48  
The file does not exist in the outside mql4 folder ,it's in bureau
/
To add comments, please log in or register