--- Returns the content of file as array of lines
-function readfilel(filename)
- local fp, err = io.open(filename)
- local line = ""
- local data = {}
-
- if fp == nil then
- return nil, err
- end
-
- while true do
- line = fp:read()
- if (line == nil) then break end
- table.insert(data, line)
- end
-
- fp:close()
- return data
-end
-