In a mess with FileReadArray. Please help.

 

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.

 
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 ?
Reason: