read_rawresource(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸŽ€ 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 🌸

  1. Each "line" is constrained to a maximum of 4096 characters β€” no sprawling novel energy, bestie πŸ“.
  2. 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