17 lines
257 B
Markdown
17 lines
257 B
Markdown
|
read a file's contents as a string.
|
||
|
|
||
|
```lua
|
||
|
io.readfile(filename)
|
||
|
```
|
||
|
|
||
|
get the individual file lines using [[string.explode|string.explode]].
|
||
|
|
||
|
### Parameters ###
|
||
|
|
||
|
* `filename` - a path to a filename.
|
||
|
|
||
|
### Availability ###
|
||
|
|
||
|
Premake 5.0.0 alpha 12 or later.
|
||
|
|