File:write(data)method
Writes data to the file.
Parameters
data
A variable converted to a string value to be written to the file.
Return value
Returns the number of bytes written to the file.Example
--! luart-extensions
import console
-- create a Buffer with bytes indicating "L��"
local msg = sys.Buffer("4CC3BBC3A4", "hex")
-- write the Buffer to the console.stdout standard File
console.stdout:write(msg)