GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
write_rawresource(3) Arcan Lua API write_rawresource(3)

write_rawresource - Write a line from the globally shared raw resource handle.

line
write_rawresource()

1
Each "line" is constrained to a maximum of 256 characters.
2
Leading and trailing whitespace is removed.
3
This is not intended as a primary I/O mechanism, just as a fallback for logging and code/configuration generation in a purposely limited fashion. Furthermore, it is synchronously blocking.

function write_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

open_rawresource(3) read_rawresource(3) close_rawresource(3)

June 2022 resource

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.