mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-23 03:48:01 +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
|