CopyFromStream appends another file data from a stream. Returns number of bytes written and -1 for error in appending the file data.
Parameters |
Description |
File * pstream |
Pointer to the stream from which file data is to be copied. |
int byteSize |
Size of file in bytes. |
An int value containing the number of bytes written.