textfile loop in c | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 1

textfile loop in c

Hey everyone! How to loop over a text file using do-while? Thanks in advance!

12th Jun 2020, 3:30 AM
Angel Detalla
Angel Detalla - avatar
2 Réponses
+ 2
0. Open the file for read 1. While not end of file do the following... 2. Read from file 3. Process data 4. Loop to step 1 5. Close the file
12th Jun 2020, 10:35 AM
Brian
Brian - avatar
+ 1
Thanks Bro. I already solved the problem by putting FILE at global. But thanks BTW, much appreciated, still helpful for future codes! 😄
12th Jun 2020, 10:44 AM
Angel Detalla
Angel Detalla - avatar