version 1.15, 2003/01/25 14:38:58
|
version 1.16, 2003/08/12 18:00:11
|
|
|
# error "Unsupported platform" | # error "Unsupported platform" |
#endif | #endif |
| |
|
#if defined(PEGASUS_OS_OS400) |
|
# include "OS400ConvertChar.h" |
|
#endif |
|
|
PEGASUS_USING_STD; | PEGASUS_USING_STD; |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
Boolean System::copyFile(const char* fromPath, const char* toPath) | Boolean System::copyFile(const char* fromPath, const char* toPath) |
{ | { |
|
#if defined(PEGASUS_OS_OS400) |
|
AtoE((char *)fromPath); |
|
AtoE((char *)toPath); |
|
#endif |
|
|
ifstream is(fromPath PEGASUS_IOS_BINARY); | ifstream is(fromPath PEGASUS_IOS_BINARY); |
ofstream os(toPath PEGASUS_IOS_BINARY); | ofstream os(toPath PEGASUS_IOS_BINARY); |
| |
|
#if defined(PEGASUS_OS_OS400) |
|
EtoA((char *)fromPath); |
|
EtoA((char *)toPath); |
|
#endif |
|
|
char c; | char c; |
| |
while (is.get(c)) | while (is.get(c)) |