I am using fgets to read words line by line, however using fgets I always get the extra '\n' in each line.. how do I eliminate it?
say I have this list:
Apple
Bubble
Man
Zebra
then I use fgets, I get Apple\n, how do I get Apple only?
I am using fgets to read words line by line, however using fgets I always get the extra '\n' in each line.. how do I eliminate it?
say I have this list:
Apple
Bubble
Man
Zebra
then I use fgets, I get Apple\n, how do I get Apple only?
Last edited by -EquinoX-; 05-03-2008 at 11:58 PM.