impl file writf for mingw