You open the file for input "r"
and then attempt to output to it. If you want an output file, use mode "w".
i think your fputs syntax is wrong: |
Could you explain what exactly is wrong?
This is the function declaration, which seems to match the code originally posted above.
int fputs ( const char * str, FILE * stream );
Last edited on
@chervil; oh no.,, i'm sorry i'm wrong i've just got confuse what he wants to do with the program
Wow, thanks guys, I am such an idiot.