what to use?
is there any WIN32 API call that is simular to fstream?
As I understand it, the Win32 API has nothing to do with file i/o. If there is one, so be it (pretty sure there isn't), but if you're wanting file i/o I can't think of any reason not to use standard libraries. And this isn't going to be used to delete a user's file's while the Win32 portion of your program is invisble, is it, cgod?
The Windows API has a set of File Management Functions, most of which do the same thing as functions in fstream.