writing/creating a file with filedialog