Output should be working now too. Takes an input to see what file name it should write to. Creates the file before writing to it if necessary. An output.txt has been included as an example.