

import java.io.*;

import java.lang.*;


/**
 *  Description of the Class
 *
 *@author     jeff
 *@created    May 15, 2003
 */
public class FileOutputWriter {

	private FileWriter fr;

	private BufferedWriter br;

	private PrintWriter out;



	/**
	 *  Constructs a FileOutputWriter
	 *
	 *@param  filename  the filename of the output
	 */

	public FileOutputWriter(String filename) {

		try {
			fr = new FileWriter(filename);

		} catch (IOException e) {

			System.out.println(e);

			System.exit(-1);

		}
		/*
		 *  catch
		 */

		br = new BufferedWriter(fr);

		out = new PrintWriter(br);

	}


	/*
	 *  Cat
	 */

	/**
	 *  write a string
	 *
	 *@param  outputLine  the string to be outputted
	 */

	public void write(String outputLine) {

		out.print(outputLine);

	}



	/**
	 *  write a string and change to the next line
	 *
	 *@param  outputLine  the string to be outputted
	 */

	public void writeln(String outputLine) {

		out.println(outputLine);

	}



	/**
	 *  close the file.
	 */

	public void close() {

		out.close();

	}


}
/*
 *  public class FileOutputWriter
 */

