read_rawresource(3)
π read_rawresource β the Arcan Lua API cutie π
okay so bestie, welcome to read_rawresource(3), a page from the Arcan Lua API π β manual name folded in right here, youβre welcome π
. This one reads a line from the globally shared raw resource handle. Thatβs the whole little mission, no cap β¨.
π«Ά NAME π«Ά
read_rawresource β read a line from the globally shared raw resource handle. Thatβs it, thatβs the gig π.
β¨ SYNOPSIS β¨
the shape is literally:
line
read_rawresource()
πΈ NOTES πΈ
- Each
"line"is constrained to a maximum of4096characters β no sprawling novel energy, bestie π. - Leading and trailing whitespace is removed β so donβt count on your extra cozy spaces surviving, fr fr π§.
π EXAMPLE π
the example is giving test-it-out energy:
function read_rawresource0()
zap_resource("test.txt");
open_rawresource("test.txt");
write_rawresource("linea");
close_rawresource();
open_rawresource("test.txt");
local line = read_rawresource();
close_rawresource();
if (line == "linea") then
warning("resource test OK");
else
warning("resource test failed");
end
end
π SEE ALSO π
sign-off: source/version is resource, date is October 2026 β mwah ππ«Ά
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms