468,484 Members | 2,146 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

Which is better, using ReadFile/WriteFile or use fstream?

Which is better, using ReadFile/WriteFile or use fstream?

Dec 18 '05 #1
2 2674
monkeydragon wrote:
Which is better, using ReadFile/WriteFile or use fstream?


Well, the answer for this newsgroup would be fstream, since the other
doesn't exist.
On some systems, there might be something called "ReadFile" and "WriteFile",
but those are not portable. OTOH, they might offer more functionality than
the standard fstream, which is designed as the greatest common denominator
of all the systems that a C++ compiler is available for.

Dec 18 '05 #2
For portability, <fstream> is better, while for other like optimization(if
any), the OS API is better.
Your purpose will give you a better answer.

moonrie

"monkeydragon" <ke***********@gmail.com>
??????:11**********************@g44g2000cwa.google groups.com...
Which is better, using ReadFile/WriteFile or use fstream?

Dec 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Claus Pedersen | last post: by
2 posts views Thread by gieforce | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.