0

How I can read line in text file char by char using x

I have text file that contain empty lined and I want to remove it, but when I use fget with \n, the function clear also lines start with space but not impety, any solution

21st Mar 2023, 7:28 PM
Azir Azerto
Azir Azerto - avatar
2 Respuestas
+ 1
Which fget function are you using - fgets, or fgetc? It would be easier to determine the problem if you show your code.
22nd Mar 2023, 1:47 PM
Brian
Brian - avatar
0
Try using a buffer
24th Mar 2023, 8:05 PM
William Mabotja
William Mabotja - avatar