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

 

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

 
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.

Reason: