Reads the contents of a file and returns it as a string or binary object
FileRead(filepath=[string], charsetOrBufferSize=[string], charset=[string], buffersize=[string])
Argument | Type | Required | Description | Default |
---|---|---|---|---|
filepath |
string |
true |
The path to the file to read. | |
charsetOrBufferSize |
string |
false |
Either the charset to use when reading the file, or the buffer size to use when reading the file. If providing a buffer size, the next argument can be the charset. | |
charset |
string |
false |
The explicit charset to use when reading the file. | |
buffersize |
string |
false |
The explicit buffer size to use when reading the file. |
- ContractPath
- CreateTempDirectory
- CreateTempFile
- DirectoryCopy
- DirectoryCreate
- DirectoryDelete
- DirectoryExists
- DirectoryList
- DirectoryMove
- DirectoryRename
- ExpandPath
- FileAppend
- FileClose
- FileCopy
- FileDelete
- FileExists
- FileGetMimeType
- FileInfo
- FileIsEOF
- FileMove
- FileOpen
- FileReadBinary
- FileReadLine
- FileSeek
- FileSetAccessMode
- FileSetAttribute
- FileSetLastModified
- FileSkipBytes
- FileWrite
- FileWriteLine
- GetCanonicalPath
- GetDirectoryFromPath
- GetFileInfo
- getTempFile