FileOps.$readfile()

Function group Execute on client Platform(s)
FileOps NO All

Syntax

FileOps.$readfile(cFilePath,&vVariable[,iEnc=kUniTypeAuto])

Description

Reads the file cFilePath into the variable vVariable. The function returns an error code, or zero if successful: see the FileOps function error codes.

cFilePath (Character 100000000) The pathname of the file.

vVariable (Variant) The variable into which the file contents will be read. Binary or Character. It it is Character, the file contents are converted to Character using the encoding specified by the iEnc parameter.

iEnc (Integer 32 bit, default is kUniTypeAuto) The encoding used to convert the file contents to Character. A kUniType… constant, not kUniTypeBinary or kUniTypeCharacter. Only used when vVariable is a Character variable.

See FileOps.$writefile().