Once you open the stream, it's basically the same as working with stdin and stdout. What problems are you having with your code?
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
You'd best get a book on C and read it, because it sounds like you really want a tutorial rather than the kind of specific help one finds on forums such as this one. By the way, printf uses stdout and scanf uses stdin.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Majestics
Practically a Master Poster
621 posts since Jul 2007
Reputation Points: 199
Solved Threads: 49