Loading…
None
String updated in the repository testing_project / Documentation: reference/reference_lua/errcodes — Russian |
Glossary
| English | Russian | ||
|---|---|---|---|
| No related strings found in the glossary. | |||
Loading…
None
String updated in the repository testing_project / Documentation: reference/reference_lua/errcodes — Russian |
| English | Russian | ||
|---|---|---|---|
| No related strings found in the glossary. | |||
local fio = require('fio')
local errno = require('errno')
local f = fio.open('/tmp/xxxx.txt', {'O_RDONLY' })
if not f then
error("Failed to open file: "..errno.strerror())
end
local data = f:read(4096)
f:close()
print(data)
local fio = require('fio')
local errno = require('errno')
local f = fio.open('/tmp/xxxx.txt', {'O_RDONLY' })
if not f then
error("Failed to open file: "..errno.strerror())
end
local data = f:read(4096)
f:close()
print(data)