Libraries
File utilities Source Code
 previous   up   next 

Function Summary
void
copyFile (inout file: source, inout file: dest)
Copy a file from source to destination.
integer
copyFile (inout file: source, inout file: dest, in integer: numChars)
Copy at most numChars bytes from source to dest.
void
insertArea (inout file: aFile, in integer: insertPos, in integer: numChars)
Insert an area of numChars chars beginning at insertPos into aFile.
void
deleteArea (inout file: aFile, in integer: deletePos, in integer: numChars)
Delete an area of numChars chars beginning at deletePos from aFile.

Function Detail

copyFile

const proc: copyFile (inout file: source, inout file: dest)

Copy a file from source to destination. The source file is copied to dest until end-of-file is reached.


copyFile

const func integer: copyFile (inout file: source, inout file: dest, in integer: numChars)

Copy at most numChars bytes from source to dest. The source file is copied to dest until 'numChars bytes are copied or end-of-file is reached.

Returns:
the number of bytes copied (which is less or equal numChars).

insertArea

const proc: insertArea (inout file: aFile, in integer: insertPos, in integer: numChars)

Insert an area of numChars chars beginning at insertPos into aFile.

Raises:
RANGE_ERROR - If insertPos is negative or zero, or if numChars is negative.

deleteArea

const proc: deleteArea (inout file: aFile, in integer: deletePos, in integer: numChars)

Delete an area of numChars chars beginning at deletePos from aFile.

Raises:
RANGE_ERROR - If deletePos is negative or zero, or if numChars is negative.


 previous   up   next