Hi all,
I am new to C programming. I got a question here..
let say i wanna read from a file sample.txt :
hello boy
how old are you?
and print out line by line.
if i use
fscanf(file, "%s\n", line);
printf("%s\n", line);
the answer will be:
hello
boy
how
old
are
you?
How can i print it line by line like following:
hello boy
how old are you?
Thank you so much...