Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[beginner] C reading lines, and numbers

Name: Anonymous 2009-08-29 8:56

I have a file in which ever line of text is terminated with a number. I'd like to extract the text and the number to variables, how do I do that?

Name: Anonymous 2009-08-29 13:31

>>19
notice the newline that usually will be there with fgets (unless the user types something like foo bar-123^D), is not trimmed, on purpose. If you desire such functionality implement it yourself.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List