Writing to a text files

Adding a text block to a text file: