All Bundles
FileReader
Supports file read operations
Derived from: File
Operations
New
Default constructor.
New(name:System.String)
Parameters
Name | Type | Description |
---|
name | String | filename |
Close
Closes the file
method : public : Close() ~ Nil
ReadBinaryFile
Reads a file's contents into byte array
function : ReadBinaryFile(name:String) ~ Byte[]
Parameters
Name | Type | Description |
---|
name | String | filename |
Return
Type | Description |
---|
Byte[] | byte array, Nil if file is not found |
ReadBuffer
Reads bytes into a character buffer
method : public : ReadBuffer(offset:Int, num:Int, buffer:Char[]) ~ Int
Parameters
Name | Type | Description |
---|
offset | Int | destination buffer offset |
num | Int | number of values to read |
buffer | Char[] | input buffer |
Return
Type | Description |
---|
Int | number of values read |
Reads bytes into a byte buffer
method : public : ReadBuffer(offset:Int, num:Int, buffer:Byte[]) ~ Int
Parameters
Name | Type | Description |
---|
offset | Int | destination buffer offset |
num | Int | number of values to read |
buffer | Byte[] | input buffer |
Return
Type | Description |
---|
Int | number of values read |
ReadByte
Reads a byte
method : public : ReadByte() ~ Byte
Return
Type | Description |
---|
Byte | byte read |
ReadFile
Reads a file's contents into a string
function : ReadFile(name:String) ~ String
Parameters
Name | Type | Description |
---|
name | String | filename |
Return
Type | Description |
---|
String | character string, Nil if file is not found |
ReadLine
Reads a string until a newline or character return is detected
method : public : ReadLine() ~ System.String
Return
Type | Description |
---|
String | character string |