B
Berlin Brown
This is basic java, and I have an idea, but without looking at the java
code, I cant get an 100% understanding.
File _file = new File("somefilename");
FileWriter fileWriter = null;
BufferedWriter outputFile = null
fileWriter = new FileWriter(_file);
outputFile = new BufferedWriter(fileWriter);
PrintWriter out = new PrintWriter(outputFile);
outputFile.close(); // ???
out.close(); // ???
In this close what would physically close the file.
outputFile.close() ...which is the BufferedWriter or
out.close();
code, I cant get an 100% understanding.
File _file = new File("somefilename");
FileWriter fileWriter = null;
BufferedWriter outputFile = null
fileWriter = new FileWriter(_file);
outputFile = new BufferedWriter(fileWriter);
PrintWriter out = new PrintWriter(outputFile);
outputFile.close(); // ???
out.close(); // ???
In this close what would physically close the file.
outputFile.close() ...which is the BufferedWriter or
out.close();