
public class FileImpl 
implements File {

	
	public void open(String fileName) throws Exception {
		System.out.println("Entering open()...");
		// code to handle the exception, or
		// can throw to another exception
		
		// if (fileName.equals("output.txt"))
			// throw new FileException("File doesn't exist");
	}

	public int read(char[] bytes) throws FileException {
		return 0;
	}

	public void write(char[] bytes) throws FileException {
		
	}

	public boolean close() throws Exception {
		return false;
	}

}
