home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_04 / 1104105a < prev    next >
Text File  |  1993-01-30  |  955b  |  27 lines

  1.      class FileName;     
  2.                     // String containing legal filenames
  3.      class Internal_ByteArray;     
  4.                     // Array of bytes (can include nuls)
  5.                     // Includes length 
  6.      class Internal_ByteOffset; // a long 
  7.      class Internal_ByteSize;     // a long
  8.  
  9.      class Internal_File  
  10.           {
  11.      public:
  12.           enum Mode {Read, Write, ReadWrite};
  13.           enum Error {No_error, Does_not_exist, Read_only, 
  14.                End_of_file, ... }
  15.           Internal_File();
  16.           ~Internal_File(); // calls close() if not closed
  17.           Error open(FileName name, Mode mode = Read);
  18.           Error create(FileName name);
  19.           Error close();
  20.           Internal_ByteSize read(Internal_ByteArray buffer);
  21.           Internal_ByteSize write(Internal_ByteArray buffer);
  22.           Error seek(Internal_ByteOffset offset);
  23.           Error error();
  24.           //...
  25.           };
  26.  
  27.