By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

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

P: n/a
Which is better, using ReadFile/WriteFile or use fstream?

Dec 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.