Hi Perkez,
MT4 restricts from security reasons access to files only under its
installation\experts\files directory. You must either put the signals file
there or use windows DLL to open the file.
Lot of pips in black,
Michal
http://www.mqlservice.com
-----Original Message-----
From: MetaTrader_Experts_and_Indicators (A...oups (DOT) com
[mailto:MetaTrader_Experts_and_Indicators (AT) yahoogroups (DOT) com] On Behalf Of
Perkz
Sent: donderdag 25 september 2008 18:26
To: MetaTrader_Experts_and_Indicators (A...oups (DOT) com
Subject: Re: [MT_E and I] Help using
I need a lttle help
I have a file in files in northfinance
I want to read them from IBFX
the file is there i can see it
but i cant get metatrader to pick it up
void ReadSignalFile(string siggy)
{
string filename = "c:\program files\metatrader -
northfinance\experts\files\Signal.txt";
int handle = FileOpen(filename,FILE_READ);
if (handle>1)
{
// FileSeek(handle, 0, SEEK_END); // go to end of file
FileReadString(handle, siggy);
FileClose(handle);
}
}
any ideas??
------------------------------------
For archives of Experts and Indicators from the MetaTrader Experts and
Indicators Group
See
http://www.forexmt4.com/ or
http://www.lightpatch.com/forex
Yahoo! Groups Links