Инструменты пользователя

Инструменты сайта


works:programmer:lua:io-read-params

Принемаемые параметры для io.read

s = io.read("*n") -- read a number
s = io.read("*l") -- read a line (default when no parameter is given)
s = io.read("*a") -- read the complete stdin
s = io.read(7) -- read 7 characters from stdin
x,y = io.read(7,12) -- read 7 and 12 characters from stdin and assign them to x and y
a,b = io.read("*n","*n") -- read two numbers and assign them to a and b
works/programmer/lua/io-read-params.txt · Последнее изменение: 2024/11/04 01:23 — tuxapuk

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki