Download MetaTrader 5
To add comments, please log in or register
Have you just installed MetaTrader 5? Learn it in details!
mpp
10
mpp 2011.08.08 14:46 

Hi all,


I'm having some problems on reading a value from a .txt file in an Expert Advisor.


I have the following code:

int file_handdle=FileOpen("test.txt",FILE_READ|FILE_ANSI);
   string string_read=FileReadString(file_handdle,4);
   
   Print("String read: " + string_read);
   
   FileClose(file_handdle);


But when executed it just shows on console:

String read: 
String read: 
String read: 
String read: 
String read: 


Can you find what I'm doing wrong?


Thanks:)

/
To add comments, please log in or register