Hi I am trying to read each line of my file, then put each separate line into a slot in an array.
Here is the code I am trying to use...
Code:
new readdata[128];
new parsedline;
new newOrigin[6];
new i = 0;
while(fgets(filepointer,readdata,127))
{
parse(readdata, parsedline, 31);
newOrigin[i] = parsedline;
i ++;
}
The file contains 6 lines. I want each line into the newOrigin array. How do I do this?