Answer the question
In order to leave comments, you need to log in
How to read lines from a file?
How to read lines from a file?
fscanf(GE, "%s", word); - reads up to a space.
That's it, also not a varicose. It simply overwrites the array, but you need everything to write to one array.
while (!feof(GE)) {
fscanf (GE, "%s", word);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question