doc:lua_make-your-own-scripts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:lua_make-your-own-scripts [2015/11/15 13:31] – [Miscellaneous Commands] admin | doc:lua_make-your-own-scripts [2019/04/08 18:43] (current) – [The IO Commands] admin | ||
|---|---|---|---|
| Line 136: | Line 136: | ||
| - | ==== The Communication | + | ==== The Communication Commands ==== |
| Line 192: | Line 192: | ||
| - | ^ filename | + | ^ filename |
| - | |/ | + | |/ |
| - | |/ | + | |/ |
| - | |URL like '' | + | |URL like '' |
| - | |URL like '' | + | |URL like '' |
| + | |||
| + | After opening the file with IOInput(), it can be read with ioRead() | ||
| === ioRead(" | === ioRead(" | ||
| - | Read one line of the input file ending with either | + | Read one line of the input file ending with either< |
| - | + | ||
| === ioRead (" | === ioRead (" | ||
| Line 211: | Line 211: | ||
| - | === ioRead (count) === | + | === ioRead (" |
| - | Read count number | + | Here it's assumed that the input file consists |
| - | === ioOutput(URL[, | + | === ioRead |
| - | Try to opens '' | + | This mainly for testing purposes. It returns |
| - | === ioWrite (String) === | + | |
| - | Attaches the string content to the output file | + | \\ |
| + | ==== The Buffer Commands ==== | ||
| + | |||
| + | |||
| + | FIXME this whole Buffer section is not implemented and actual just here as a reference for discussion | ||
| Line 302: | Line 305: | ||
| - | ==== Miscellaneous | + | ==== WriteString Command Syntax |
| + | As default the command | ||
| - | === serDisplayWrite(String) === | + | |
| + | |||
| + | |||
| + | writes //String// to the build in output console. But with an optional secound parameter as command this behavior can be changed: | ||
| + | |||
| + | serDisplayWrite(parameter, | ||
| + | |||
| + | The different commands have the following effects: | ||
| + | |||
| + | ^ parameter | ||
| + | | buffername | ||
| + | | - | clear | clears actual buffer content | | ||
| + | | - | clearall | ||
| + | | filename | ||
| + | | filename | ||
| + | | filename | ||
| + | | filename | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Miscellaneous | ||
| - | Writes //String// to the build in output console. | ||
| === dbLookup(db-File , searchstring) === | === dbLookup(db-File , searchstring) === | ||
doc/lua_make-your-own-scripts.1447590688.txt.gz · Last modified: 2015/11/15 13:31 by admin
