1
0
Fork 0
mirror of https://github.com/Oreolek/ink-instead.git synced 2024-04-28 15:19:25 +03:00

error opening file

This commit is contained in:
premek 2016-12-31 15:02:22 +01:00
parent 31870954d9
commit b2b6dd4d51

View file

@ -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