skt1977:
No one else has had any difficulty with FileReadArray / file functions after the recent build upgrades ?
I have a file abc.csv and there are multiple variable value pairs in there separated with a "#" character -
a#4
b#3
c#4.67
and so on.
Here is the code :
string listcsv="abc.csv";
string listarray[500];
filehandle=FileOpen(listcsv, FILE_BIN|FILE_READ|FILE_WRITE);
int t=FileReadArray(filehandle, listarray, 0, 500);
Until around 4 months back, the above 2 code used to result in the listarray ( string array ) getting loaded with the strings listed in the file.
It no longer works. I also use FileWriteArray function subsequently to write back to the file the updated array. Not sure if that is also broken.
What has changed on the new builds. How to make this work ?
All help is appreciated.
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
I have a file abc.csv and there are multiple variable value pairs in there separated with a "#" character -
a#4
b#3
c#4.67
and so on.
Here is the code :
string listcsv="abc.csv";
string listarray[500];
filehandle=FileOpen(listcsv, FILE_BIN|FILE_READ|FILE_WRITE);
int t=FileReadArray(filehandle, listarray, 0, 500);
Until around 4 months back, the above 2 code used to result in the listarray ( string array ) getting loaded with the strings listed in the file.
It no longer works. I also use FileWriteArray function subsequently to write back to the file the updated array. Not sure if that is also broken.
What has changed on the new builds. How to make this work ?
All help is appreciated.