(file) Return to FileSystem.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/FileSystem.h between version 1.23 and 1.24

version 1.23, 2002/08/21 22:45:50 version 1.24, 2002/08/29 00:27:52
Line 373 
Line 373 
  
 inline Boolean Open(PEGASUS_STD(ifstream)& is, const String& path) inline Boolean Open(PEGASUS_STD(ifstream)& is, const String& path)
 { {
     char* tmpPath = path.allocateCString();      is.open(path.getCString());
     is.open(tmpPath);  
     delete [] tmpPath;  
     return !!is;     return !!is;
 } }
  
 inline Boolean Open(PEGASUS_STD(ofstream)& os, const String& path) inline Boolean Open(PEGASUS_STD(ofstream)& os, const String& path)
 { {
     char* tmpPath = path.allocateCString();      os.open(path.getCString());
     os.open(tmpPath);  
     delete [] tmpPath;  
     return !!os;     return !!os;
 } }
  
 inline Boolean OpenAppend(PEGASUS_STD(ofstream)& os, const String& path) inline Boolean OpenAppend(PEGASUS_STD(ofstream)& os, const String& path)
 { {
     char* tmpPath = path.allocateCString();      os.open(path.getCString(), PEGASUS_STD(ios::app));
     os.open(tmpPath, PEGASUS_STD(ios::app));  
     delete [] tmpPath;  
     return !!os;     return !!os;
 } }
  


Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2