arrays - C - fgets read past newline -
i trying read file in increments of 10 , store them in array. use loop read this:
char storearray[11]; while(!foef(input)){ fgets(storearray, 11, input); }
i need store 10 characters @ time in array fgets stops reading @ newline. suggestions on how can continue read newline, store , continue read until array full?
should instead use fgetc in loop runs 10 times?
Comments
Post a Comment