Skip to main content
gamedev.net
🔒 Locked

stdio vs fstream

Started by r3n3gad3 1 reply 2.1k views
Original Post
r3n3gad3
r3n3gad3
i have been doing nehe''s opengl tutorials i see he uses stdio.h as the header for him to be able to read his files... what this like compared with fstream... are they are kinda the same ... or totally different? i know fstream but dont get the stdio so does ne1 know a tutorial where i can learn it.... thanx a bunch
Jedyte
Jedyte
quote:
Original post by Anonymous Poster
although stdio.h covers more than fstream, such as console output with printf()

.. which is what iostream is for

There recently was a thread about this, try searching for it.

Personally, I prefer the C++ streams, because they are cleaner, safer, and more coherent. But that''s just what it is, I guess, personal preference (trying to avoid a religious war at all costs here )

And the price we paid was the price men have always paid for achieving paradise in this life -- we went soft, we lost our edge. - "Muad'Dib: Conversations" by the Princess Irulan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.