Download MetaTrader 5
To add comments, please log in or register
Share your program via Code Base. Gain access to millions of traders!
Sat
57
Sat 2014.06.09 16:39 

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.

Sat
57
Sat 2014.06.11 20:47  
skt1977:

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.


No one else has had any difficulty with FileReadArray / file functions after the recent build upgrades ?
/
To add comments, please log in or register