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

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -