FileOpen of set file

 

Hi guys,

i try to read a file .set:

string PathTester_set_2  = TerminalPath()+"\\experts\files\\EURUSD_MR_10.SET"

Copy_set=FileOpen(PathTester_set_2,FILE_READ,';');  

but i have this error:

I need to say if the file EURUSD_MR_10.SET exist....

Please help.

Thank's

 

u only can open file in /experts/files.... correct usage: FileOpen("file.set",FILE_READ);

 
cello23:

Hi guys,

i try to read a file .set:

but i have this error:

I need to say if the file EURUSD_MR_10.SET exist....

Please help.

Thank's

Hi cello23,

Here's the help file on FileOpen() - whic also available on your MetaEditor https://docs.mql4.com/files/FileOpen

Here's an article of another way of working with file https://www.mql5.com/en/articles/1543 and https://www.mql5.com/en/articles/1540

 
silverstar4x: u only can open file in /experts/files.... correct usage: FileOpen("file.set",FILE_READ);

Yep. TERMINAL/experts/files or TERMINAL/tester/files only.

If you must read outside there you can't use the mt4 routines.

File Operations via WinAPI - MQL4 Articles
Grouped File Operations - MQL4 Articles







 
Than's so much!!
Reason: