Explain-why-Buffering-is-extremely-useful-when-outputing-a-file
1. Explain why Buffering is extremely useful when outputing a file. What do we have to remember to do if using a Buffered output writer and why?
2. Correct the error in this code:
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines
Order Paper Nowprivate PrintWriter outFile;
outFile = new PrintWriter (nameField.getText());
3. Explain the problem with this code, intended to read every line in a file. Assume that all the variables have been declared:
line = inFile.readLine();
while (line != null) {
textarea.append(line + “n”);
}