I have a program in which I write several numbers, seperated by commas, to a text file. I then use the split function to get the individual numbers back. The problem is that the writer puts a newline at the end of the text file and I need to somehow get rid of it. I tried using a string.trim function, but I couldnt figure out how to say newline as a character.