unix: function of creating new file.