How to Creat An Text file in c:\ or in d:\ or any other drive , please provide me an example code

Back to topics list To post a new topic, please log in or register
avatar
15
SELVAN 2016.01.20 14:58
 

Dear sir,


i am having an doubt please clarify


i want to create or read or write  an text file c:\ or in d:\  etc.,


i request you to provide me the code


because i had try using FileOpen command in mql4  i am successfully able to read or wite under metaquote folder but not in c:\ or in d: \


so i request  you to provide me the code for creating / reading / writing an text file  ( or csv file ) in c:\ or in d:\


Thankyou sir



avatar
1109
Ovo 2016.01.20 15:08 #
 
SELVAN:

Dear sir,


i am having an doubt please clarify


i want to create or read or write  an text file c:\ or in d:\  etc.,


i request you to provide me the code


because i had try using FileOpen command in mql4  i am successfully able to read or wite under metaquote folder but not in c:\ or in d: \


so i request  you to provide me the code for creating / reading / writing an text file  ( or csv file ) in c:\ or in d:\


Thankyou sir 

You have multiple possibilities, the easier is probably creating a sym link. Navigate your cmd window directory to your data MQ4/File and run

mklink /j mydrive c:\

 Then you have entire drive inside the sandbox.

Back to topics list  

To add comments, please log in or register