Whoa. Your fundamental misunderstanding of structs and how to use format strings with scanf functions is really killing you here.
I'm not sure where you are getting the number 100 or 50, but...
Type: Posts; User: Tclausex
Whoa. Your fundamental misunderstanding of structs and how to use format strings with scanf functions is really killing you here.
I'm not sure where you are getting the number 100 or 50, but...
Yes, and no. You'll need to use the negated scanset instead of %s because you don't want the commas. %d will work as is, and you need literal commas after each specifier to eat up the comma. And a...
Copying and pasting can be dangerous coding. Why are you fwrite'ing?
You stated it was a text file, so open it as a text file. Also, you should always check that the file open was successful:...