Hey everyone. Im back! hehe I am trying to set up a simple array (or not so simple for me apparantly). I want to input a bunch of 0s and 1s from a text file into this integer array. I also only want it to input 1 integer at a time.
For some reason I am having trouble. The main input loop is
for (dumcount = 0 ;dumcount < 200 && (!feof(fpList)) ; dumcount++ )
{
dummynum = fgetc(fpList);
vnum_ship_list[dumcount] = dummynum;
}
I believe the problem lies with the EOF but I can't seem to figure out what it is.
Any help would be greatly appreciated!
Thanks!
For some reason I am having trouble. The main input loop is
for (dumcount = 0 ;dumcount < 200 && (!feof(fpList)) ; dumcount++ )
{
dummynum = fgetc(fpList);
vnum_ship_list[dumcount] = dummynum;
}
I believe the problem lies with the EOF but I can't seem to figure out what it is.
Any help would be greatly appreciated!
Thanks!