FileWrite - inFile = new BufferedReader(new FileReader(s...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
package lab4; p import*; public class FileWrite { p BufferedWriter outFile; public FileWrite(String outFile1) throws IOException p { outFile = new BufferedWriter(new FileWriter(outFile1)); } BufferedReader inFile; public BufferedReader readFile(String s) throws IOException
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { inFile = new BufferedReader(new FileReader(s)); return inFile; } public void close() throws IOException { outFile.close(); } public void writeToObject(String s) throws IOException { outFile.write(s); outFile.newLine(); } }...
View Full Document

This note was uploaded on 09/10/2009 for the course CS 102 taught by Professor Kanipiakins during the Spring '09 term at University of Maryland Baltimore.

Ask a homework question - tutors are online