Input loop: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 332: | Line 332: | ||
while [not eof?] [print readline] |
while [not eof?] [print readline] |
||
</lang> |
</lang> |
||
=={{header|Lua}}== |
|||
<lang lua>lines = {} |
|||
str = io.read() |
|||
while str do |
|||
table.insert(lines,str) |
|||
str = io.read() |
|||
end</lang> |
|||
=={{header|MAXScript}}== |
=={{header|MAXScript}}== |