I find that it is tremendously easier to use streams in c++ instead of windows functions like ReadFile, WriteFile, etc or even fprintf. When is it not good to use streams? When is it good to use streams? Is it safe to use streams? How come a lot of programmers don't use streams?
This is just something I've always wondered about and maybe you can shed some wisdom.
When is it not good to use streams?
When is it good to use streams?
Is it safe to use streams?
Yes, but you've got to be careful when sharing a stream asynchronously.
How come a lot of programmers don't use streams?
Preference, style, or they learned a different method (or different language) first. I find that plenty of old "c++" examples online are written with a C-flavor to them, prefering printf to cout.