Download MetaTrader 5

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

To add comments, please log in or register
Selvan
53
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

Ex Ovo Omnia
3191
Ex Ovo Omnia  
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.

To add comments, please log in or register