#25 fix attempt 2

This commit is contained in:
luke bonham 2014-02-08 12:10:13 +01:00 committed by copycat-killer
parent 940a900b9a
commit 9cd85a2582
1 changed files with 1 additions and 2 deletions

View File

@ -35,12 +35,11 @@ end
-- see if the file exists
function helpers.file_exists(file)
local f = io.open(file, "rb")
local f = io.open(file)
if f then f:close() end
return f ~= nil
end
-- get all lines from a file, returns an empty
-- list/table if the file does not exist
function helpers.lines_from(file)