windows: function of creating new file.