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

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

Non Unique Username with ASP.Net Identity 2.0 -