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?
fgets (unless the user types something like foo bar-123^D), is not trimmed, on purpose. If you desire such functionality implement it yourself.