Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

OFILE.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OFILE.H

Go to the documentation of this file.
00001 //Filename    : OFILE.H
00002 //Description : Header file for file object
00003 
00004 #ifndef __OFILE_H
00005 #define __OFILE_H
00006 
00007 //#ifndef __ALL_H
00008 //#include <ALL.H>
00009 //#endif
00010 
00011 #ifndef __WINDOWS_
00012 #include <WINDOWS.H>
00013 #endif
00014 
00015 //--------------------------------------//
00016 
00019 class File {
00020 public:
00021     char file_name[MAX_PATH+1];
00022 
00023     HANDLE file_handle;
00024     int    handle_error;
00025 
00026     char   allow_vary_size;                       // allow the writing size and the read size to be different
00027 
00028 public:
00029     File()     { file_handle=INVALID_HANDLE_VALUE; }
00030     ~File();
00031 
00032     int   file_open(char*, int=1, int=0);
00033     int   file_create(char*, int=1, int=0);
00034     int file_append(char*, int=1, int=0);
00035     void  file_close();
00036 
00037     long  file_size();
00038     long  file_seek(long, int= -1);
00039     long  file_pos();
00040 
00041     int   file_read(void*, unsigned);
00042     int   file_write(void*, unsigned);
00043 
00044     short file_get_short();
00045     int   file_put_short(short);
00046 
00047     unsigned short file_get_unsigned_short();
00048     int   file_put_unsigned_short(unsigned short);
00049 
00050     long  file_get_long();
00051     int   file_put_long(long);
00052 };
00053 #endif

Generated on Fri Aug 23 01:37:33 2002 for VirtualU by doxygen1.2.17