try this one (without an warranty - not tested!).
int readAllLines( const string fName, string &l[], ushort sepLine='\n') { // alternative to FileOpen uchar Bytes[]; return( FileLoad(fName, Bytes) ? StringSplit(CharArrayToString(Bytes), '\n', l) : 0); }
It should read the whole file and splits it into lines (l[])
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
hi guys i have a script , this script read a txt file (with this function, i create a global array aGLineReadHSprd[9999] )
load txt inside of aGLineReadHSprd
in onstart i create one for cicle, for Print all array but print some time 5277 to 5890 and jump 9925, not print all array 0 to 9999 why ????