mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-11-14 04:11:13 +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
|