<<< Writer hierarchy -- character output streams | Index | Buffered character file I/O >>> |
Opening a file without a buffer (not recommended)
FileWriter fileWriter = new FileWriter("books.txt"); PrintWriter out = new PrintWriter(fileWriter);
A more concise way to code this example would be
PrintWriter out = new PrintWriter( new FileWriter("books.txt"));
<<< Writer hierarchy -- character output streams | Index | Buffered character file I/O >>> |