> complete one...
Though it was?
On writes to file of full path = strFile, the other reads from it
What do you think is missing?
Thank you for your fast respond,
Can you provide the exactly working sample? So that, I can easily learning.
Thanks again for your help.
Shams
> Can you provide the exactly working sample...
That is a working example - what do you want the whole EA?
See attached :)
-BB-
Files:
forumhexamplec1.mq4
12 kb

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thank you for your information.
Could you please kindly provide the complete one?
Your help will much appreciate
Shams
void WriteIniFile(string strFile)
{
int handle0 = FileOpen(strFile, FILE_CSV|FILE_WRITE, ";");
if (handle0 > 0)
{
FileWrite(handle0, "EURUSD", "0.0001", "Y");
FileWrite(handle0, "EURCHF", "0.0001", "N");
FileWrite(handle0, "USDCHF", "0.0001", "N");
FileWrite(handle0, "USDJPY", "0.01", "N");
FileWrite(handle0, "EURJPY", "0.01", "N");
FileWrite(handle0, "AUDUSD", "0.0001", "N");
FileWrite(handle0, "GBPUSD", "0.0001", "F");
FileWrite(handle0, "EURGBP", "0.0001", "F");
FileWrite(handle0, "XXXXXX", "0.0001", "N");
FileWrite(handle0, "XXXXXX", "0.0001", "N");
FileWrite(handle0, "XXXXXX", "0.0001", "N");
FileWrite(handle0, "XXXXXX", "0.0001", "N");
FileClose(handle0);
}
return (0);
}
void LoadSymbolArray(string strFile)
{
int x=0;
double handle1=FileOpen(strFile, FILE_CSV|FILE_READ, ";");
if(handle1>0)
{
while(FileIsEnding(handle1)==false) // While the file pointer not at end..
{
// Successive calls to FileReadString pick up chunks ending with the delimiter or the end-of-row
SymbolList[x][0] = FileReadString(handle1);
SymbolList[x][1] = FileReadString(handle1);
SymbolList[x][2] = FileReadString(handle1);
x++;
}
FileClose(handle1);
}
else
{
Print("INI file missing: ", strFile);
return (0);
}
return(0);
}