Posts by dhhos • 11 points
1 post
-
0
votes1
answer198
viewsQ: How can I read a txt file in C, line by line?
I’m a beginner in C, I’m trying to read a txt file that has more than one line, but when I use fgets it only reads the first line, as I can read the entire file? what I’ve done so far void main() {…