Function
File:Read
Reads characters from the File and returns it. Also moves the file pointer to the latest read position. Pass 0 to read the whole file
Syntax
my_file:Read(length = 0)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
length
optional
|
integer | 0 |
Length to be read from file, leave it empty (or 0) to read the whole file |
Returns
- string file data