File:writeln(data) method
Writes data to the file, adding a terminal end of line character.
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 without the end of line character.Example
local console = require "console"
-- write "Hello World !\n" to the console.stdout standard File
console.stdout:writeln("Hello World !")