I'm drawing a blank on this. The problem I'm facing is I don't want a newLine()
created after the last line is written to the new file. How can I accomplish this?
while (((aLine = reader.readLine()) != null)) {
writer.write(aLine);
writer.newLine();
}