hello everyone Help anyone with what they can.
How do I access a file for example that is located on ” c: est.txt”
Read it, change the 1st line and save and close? Using a simple mql5 expert Advisor.
I will be sooo grateful.
Thanks!
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
billionerclub
Winapi functions are needed. You can also like this like the link
alexeynikolaev2
RTFM
mcigorli
If only..
When using
string TmpFileName(string Name,string Ext){
string fn=Name+"."+Ext; / / formed name
int n=0;
while(FileIsExist(fn)) { // if the file exists
n++;
fn=Name+IntegerToString(n)+"."+Ext; / / adding a number to the name
}
return(fn);
}
Hits an error in: (although the script is clean)
string TmpFileName(string Name,string Ext){
billionerclub
Here is a good article on working with files.