00001 #include <io.h> 00002 #include "OSDependent/WinNT/File.h" 00003 00004 // Change the mode of a file. 00005 int 00006 File::chmod(const char *name, int mode) 00007 { 00008 if (_chmod(name, mode) < 0) 00009 return -1; 00010 return 0; 00011 } 00012 00013 // Return true if file exists. 00014 bool 00015 File::doesExist(const char *name) 00016 { 00017 return (_access(name, 0) < 0) ? false : true; 00018 } 00019
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001