Reading variable from file
you could read the variables into an array then use the array as you need.
string filename = "somefile.csv"; int vars[5]; int count = 0; int file = FileOpen(filename,FILE_CSV|FILE_READ); while (!FileIsEnding(file) && count < 5) { vars[count] = FileReadNumber(file); count++; } FileClose(file);
fxcourt:
you could read the variables into an array then use the array as you need.
Thank you so much i will test it and see what is results, i will tell you the reports,thnks
thankssss....
Hello guys
lets say i have a file containing 3 lines with these numbers on it
example file:
123456789
987654321
234568798
for example i need to call line 2 with it's number and set each number to a variable like:
a=9
b=8
c=7
...
i=1
how can i open and use the file like this?
thanks for helping me