Answer:
new BufferedWriter(new FileWriter("out.dat", true));
Step-by-step explanation:
We can use the BufferedWriter and FileWriter classes to create a File object which will append data to an existing file. For this purpose we can use the following statement:
BufferedWriter salesdata = new BufferedWriter(new FileWriter("out.dat", true));
This opens the file "out.dat" for writing in append mode and uses this FileWriter to create an instance of BufferedObject instance.