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.
 
Back
Top