A
A
Andrey2018-11-05 19:23:33
C++ / C#
Andrey, 2018-11-05 19:23:33

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

1 answer(s)
D
d_ilyich, 2018-11-12
@d_ilyich

fgets ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question