public FileController(TextFile f)
 {
     numReader = 0;
     thefile   = f;
     status    = Mode.Available;
 }
Exemple #2
0
 public FileController(TextFile f)
 {
     thefile = f;
     status  = Mode.Available;
 }
Exemple #3
0
        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();
        }