This topic is now archived and is closed to further replies.

Is there any reason I should use Win32 File I/o functions and procedures?

This topic is 5044 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In most cases using C or C++ library file I/O functions is adequate for the job. C++ methods, in particular, are designed to work well with the rest of the standard library and should probably be preferred to the Windows API functions in most cases.

However, there are things you can do with Windows API file I/O that are not part of the functionality of the C or C++ library functions. For example: memory mapped files and overlapped I/O. Also, you can (in theory) get better performance by working directly with the Windows API functions. But you really need to know what you''re doing in order to get any practical benefit.

Share this post

Link to post
Share on other sites