changed println to print in TextFileWriter - no longer appends an unneeded newline to files written