mirror of
https://github.com/Oreolek/ink-instead.git
synced 2024-05-13 06:28:24 +03:00
error opening file
This commit is contained in:
parent
31870954d9
commit
b2b6dd4d51
|
@ -5,6 +5,7 @@ local runtime = require(folderOfThisFile .. 'runtime')
|
|||
|
||||
local function read(file)
|
||||
local f = io.open(file, "rb")
|
||||
if not f then error('failed to open "'..file..'"') end
|
||||
local content = f:read("*all")
|
||||
f:close()
|
||||
return content
|
||||
|
|
Loading…
Reference in a new issue