CreatFile API

  • Thread starter Thread starter Lou
  • Start date Start date
What's the .NET equivalent to "CreateFile" API?
-Lou

That depends on what your using it for :) If your using it for basic
file manipulation, then you will want to take a look at the classes in
the System.IO namespace hiearchy.
 
Lou said:
What's the .NET equivalent to "CreateFile" API?

The 'FileStream' class' constructor internally calls 'CreateFile'. However,
there are some rare cases in which you'd still have to use 'CreateFile', for
example, if you attempt to access a drive directly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

About CreateFile on vista? 1
DeviceIoControl 5
"CreateFile" APIl 2
IntPtr.Size is Wrong (x64 Vista)??? 11
Thanks! 3
Outputdebugstring 1
CreateFile API call in VB .NET 12
Translation of CreateFile dll in dot net 8

Back
Top