Are CFile::Read() and CFile::Write() Really Unbuffered? 
Author Message
 Are CFile::Read() and CFile::Write() Really Unbuffered?

The docs claim that CFile::Read() and CFile::Write() are not buffered, yet
when looking inside CFile::Open() source code, I notice that the ::CreateFile()
used doesn't specify any special options for non-buferred I/O other than
FILE_ATTRIBUTE_NORMAL (no way to specify any other attribute flags like
FILE_FLAG_SEQUENTIAL_SCAN)...

------------------------------------------------------------------------
Andy Yee                   Corporate E-Mail:    See Above
Software Engineer          Coporate Web Page:   http://www.*-*-*.com/

                           Personal Web Page:   http://www.*-*-*.com/ ~nde

Question authority...and the authorities will question YOU!
------------------------------------------------------------------------



Sat, 22 Sep 2001 03:00:00 GMT  
 Are CFile::Read() and CFile::Write() Really Unbuffered?

Quote:
>The docs claim that CFile::Read() and CFile::Write() are not buffered, yet
>when looking inside CFile::Open() source code, I notice that the ::CreateFile()
>used doesn't specify any special options for non-buferred I/O other than
>FILE_ATTRIBUTE_NORMAL (no way to specify any other attribute flags like
>FILE_FLAG_SEQUENTIAL_SCAN)...

Andy,

I think that when the docs say they're unbuffered, it's referring to
no additional 'c' run-time buffering such as the stream I/O has.

Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Sun, 23 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. CFile::Seek and CFile::Read over the network

2. CFile vs CStdioFile problem writh reading / writing text

3. CFile Write and Read for all apps

4. Problem with write using CFile and read using fscanf()

5. CFile::Open asserts on CFile::typeText

6. write to file with CFile::Write() failed

7. Reading ASCII float values with CFile.Read?

8. Beginner: CFile, a really easy(?) question

9. Reading a file with CFile::Read

10. Does CFile:Read() block on a read?

11. CFile::Write for formated strings.

12. CFile::Write and backslash codes.

 

 
Powered by phpBB® Forum Software