is there any WIN32 API call that is simular to fstream?