version 1.23, 2002/08/21 22:45:50
|
version 1.24, 2002/08/29 00:27:52
|
|
|
| |
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; |
} | } |
| |