summaryrefslogtreecommitdiff
path: root/server/locale/en-US/libs/@lua/io.lni
diff options
context:
space:
mode:
Diffstat (limited to 'server/locale/en-US/libs/@lua/io.lni')
-rw-r--r--server/locale/en-US/libs/@lua/io.lni61
1 files changed, 53 insertions, 8 deletions
diff --git a/server/locale/en-US/libs/@lua/io.lni b/server/locale/en-US/libs/@lua/io.lni
index 6b25495f..68cf8830 100644
--- a/server/locale/en-US/libs/@lua/io.lni
+++ b/server/locale/en-US/libs/@lua/io.lni
@@ -39,10 +39,6 @@ enum = '*l'
description = 'Reads the next line skipping the end of line.'
``````````
name = 'mode'
-enum = '*L'
-description = 'Reads the next line keeping the end of line.'
-``````````
-name = 'mode'
code = 'number'
description = 'Reads a string with up to this number of bytes.'
@@ -76,6 +72,36 @@ name = 'mode'
code = 'number'
description = 'Reads a string with up to this number of bytes.'
+["lines LuaJIT"]
+description = [[
+------
+```lua
+for c in io.lines(filename, ...) do
+ body
+end
+```
+]]
+[[.enums]]
+name = 'mode'
+enum = '*n'
+description = 'Reads a numeral and returns it as number.'
+``````````
+name = 'mode'
+enum = '*a'
+description = 'Reads the whole file.'
+``````````
+name = 'mode'
+enum = '*l'
+description = 'Reads the next line skipping the end of line.'
+``````````
+name = 'mode'
+enum = '*L'
+description = 'Reads the next line keeping the end of line.'
+``````````
+name = 'mode'
+code = 'number'
+description = 'Reads a string with up to this number of bytes.'
+
[open]
description = 'Opens a file, in the mode specified in the string `mode`.'
[[.enums]]
@@ -133,10 +159,6 @@ enum = '*l'
description = 'Reads the next line skipping the end of line.'
``````````
name = 'mode'
-enum = '*L'
-description = 'Reads the next line keeping the end of line.'
-``````````
-name = 'mode'
code = 'number'
description = 'Reads a string with up to this number of bytes.'
@@ -163,6 +185,29 @@ name = 'mode'
code = 'number'
description = 'Reads a string with up to this number of bytes.'
+["read LuaJIT"]
+description = 'Reads the `file`, according to the given formats, which specify what to read.'
+[[.enums]]
+name = 'mode'
+enum = '*n'
+description = 'Reads a numeral and returns it as number.'
+``````````
+name = 'mode'
+enum = '*a'
+description = 'Reads the whole file.'
+``````````
+name = 'mode'
+enum = '*l'
+description = 'Reads the next line skipping the end of line.'
+``````````
+name = 'mode'
+enum = '*L'
+description = 'Reads the next line keeping the end of line.'
+``````````
+name = 'mode'
+code = 'number'
+description = 'Reads a string with up to this number of bytes.'
+
[tmpfile]
description = 'In case of success, returns a handle for a temporary file.'