Question: I want to write this to a binary file. public void saveToFile(File file) throws IOException { BufferedWriter writer = new BufferedWriter(new FileWriter(studentInfo.txt)); for(int i=0;i
I want to write this to a binary file.
public void saveToFile(File file) throws IOException { BufferedWriter writer = new BufferedWriter(new FileWriter("studentInfo.txt")); for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
