Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Which is better, using ReadFile/WriteFile or use fstream?

Reply
Thread Tools

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

 
 
monkeydragon
Guest
Posts: n/a
 
      12-18-2005
Which is better, using ReadFile/WriteFile or use fstream?

 
Reply With Quote
 
 
 
 
Rolf Magnus
Guest
Posts: n/a
 
      12-18-2005
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.

 
Reply With Quote
 
 
 
 
moonrie
Guest
Posts: n/a
 
      12-18-2005
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" <(E-Mail Removed)>
??????:(E-Mail Removed) groups.com...
> Which is better, using ReadFile/WriteFile or use fstream?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which Free upload site to use....which is Fast & Reliable divyaf@gmail.com Digital Photography 1 07-26-2007 09:34 PM
use pointer and not use pointer, which is faster to access data? shuisheng C++ 4 09-26-2006 08:05 AM
how to use stoi? which *.h to use? trivial beginners problem... Zahpod C Programming 4 04-21-2006 06:58 PM
Microcontrollers: which one ? which language ? which compiler ? The Jesus of Suburbia NZ Computing 2 02-11-2006 06:53 PM
Web Stats? Which to use? Which is best? Familyman HTML 3 02-09-2006 11:05 PM



Advertisments