Download MetaTrader 5

Please help me in path

To add comments, please log in or register
ayoublaser
99
ayoublaser  

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  
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
15019
whroeder1  
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  
The file does not exist in the outside mql4 folder ,it's in bureau
To add comments, please log in or register