Example of writing a file