|
Is the '\n' character always appropriate at the end of a line? A good answer might be:No. It is not as portable as using newLine(). |
Updated ExampleThe updated example program uses a BufferedWriter and the newLine() method. Look at the file it creates with NotePad (or other text editor). The lines of text should appear correctly (with the earlier examples they might not).
|
QUESTION 14:Is close() necessary in this program? Click Here after you have answered the question |