HolyLib Wiki

Open

  File filesystem.Open( string fileName, string fileMode, string gamePath = GAME )

Description

Opens the given file from the given game path.

Arguments

1string fileName
file to open
2string fileMode
Can be r, rb, w, wb, a, ab
3string gamePath = GAME
game path to use

Returns

1File file
Opens the given file or returns nil on failure