FILE and fstream

Started by
2 comments, last by AdamGL 17 years, 11 months ago
What is the difference between the STDIO.h FILE class and the iostream fstream class? Is one faster, more efficient?
bi-FreeSoftware
Advertisement
FILE is C.
fstream is C++.

That's the difference.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Quote:Original post by AdamGL
What is the difference between the STDIO.h FILE class and the iostream fstream class? Is one faster, more efficient?


c++ fstreams are be a bit safer to use, and any difference between them ( if there is one ) would be inconsequential compared to the cost of disk access.
Oh thank you for clearing that up! Wasn't sure on which one to use!
bi-FreeSoftware

This topic is closed to new replies.

Advertisement