public FileController(TextFile f) { numReader = 0; thefile = f; status = Mode.Available; }
public FileController(TextFile f) { thefile = f; status = Mode.Available; }
private CloseOp closefile; // handle to call cleanup method when finished reading public FileReader(TextFile f, CloseOp c) { this.f = f; count = 0; closefile = c; }
private CloseOp closefile; // cleanup method that is called when writing done public FileWriter(TextFile f, CloseOp c) { closefile = c; this.f = f; this.f.reset(); }