file operations creating a text file