1
1
Fork 0
mirror of https://github.com/lune-org/lune.git synced 2025-04-10 13:30:53 +01:00
lune/crates/mlua-luau-scheduler/examples/lua/basic_spawn.luau
2024-06-05 16:45:53 +02:00

17 lines
307 B
Text

--!nocheck
--!nolint UnknownGlobal
local _, err = pcall(function()
local file = readFile("Cargo.toml")
if file ~= nil then
print("Cargo.toml found!")
print("Contents:")
print(file)
else
print("Cargo.toml not found!")
end
end)
if err ~= nil then
print("Error while reading file: " .. err)
end