mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-11-15 09:11:12 +00:00
11 lines
144 B
Lua
11 lines
144 B
Lua
|
local M = {}
|
||
|
|
||
|
M.read = function(file)
|
||
|
local fd = assert(io.open(file, "r"))
|
||
|
local data = fd:read("*a")
|
||
|
fd:close()
|
||
|
return data
|
||
|
end
|
||
|
|
||
|
return M
|