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:49] – [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 (" |
| + | |||
| + | |||
| + | Here it's assumed that the input file consists of a JSON string containing data. This string is translated into a lua table structure and returned | ||
| - | Read count number of bytes as string | + | === ioRead (" |
| - | === ioOutput(URL[, | + | This mainly for testing purposes. It returns the sha256 checksum of that file |
| - | Try to opens '' | + | \\ |
| - | === ioWrite (String) === | + | |
| + | ==== The Buffer Commands ==== | ||
| - | Attaches the string content to the output file | ||
| + | FIXME this whole Buffer section is not implemented and actual just here as a reference for discussion | ||
doc/lua_make-your-own-scripts.1447591744.txt.gz · Last modified: 2015/11/15 13:49 by admin
