Helo, I need calculete Spaces in file. Maybe can write this function.

Thank you

P.S Sory for may english

Recommended Answers

All 2 Replies

you have a couple of choices
(1) call fgets() to read each line into memory then search the line for spaces

(2) call fgetc() to read the file one character at a time then check for spaces.

Read the forum rules, you are not allowed to ask other people to do your homework for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.