text cutting?

How do i cut a very big text file by line?
Does Fscanf function scan the entire line?
example: "ab cd" 1234 "ed fg" 5678
"hi jk" 1234 "lm no" 5678
..............................
..............................
I have to cut this line by line.
Can any pro help me out?
Take a look at http://www.cplusplus.com/doc/tutorial/files.html
Use getline to read each line in turn.
Though I recommend Faldrax's solution better, the answer to your question is yes, with the appropriate format specifier:

1
2
char aString[ ... ];
fscanf( "%[^\n]\n", aString );


'Course the problem with this code is buffer overflow....
Thanks a lot! That's really helpful. :)
Topic archived. No new replies allowed.