IO API

From ComputerCraft
Jump to: navigation, search

Io.close Io.flush Io.input Io.lines Io.open Io.output

FunctionFunctionio.read
See read.
Syntax io.read()
Returns string textEntered
Part of CC:Tweaked
API io
See also read
ExampleExampleInput text
Asks a user to enter some text
Code
local str = io.read()
ExampleExampleInput password
Inputs a hidden string.
Code
local str = io.read("*")
ExampleExampleAutocomplete+history
Inputs with auto and hist
Code
local str = io.read(nil, {"A"}, function() return "X" end)

Io.type Io.write