File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 4
4
5
5
| Lua Standard Libraries | Included |
6
6
| -- | -- |
7
- | package | no |
8
- | coroutine | no |
9
- | table | no |
10
- | [ io] ( lib/io.md ) | since 2.1.0 (with limitations) |
11
- | os | no |
12
- | string | no |
13
- | bit | since 2.1.0 |
14
- | math | 2.0.0 |
15
- | debug | no |
7
+ | package | - |
8
+ | coroutine | - |
9
+ | table | - |
10
+ | [ io] ( lib/io.md ) | since OpenTX 2.1.0 (with limitations) |
11
+ | os | - |
12
+ | string | - |
13
+ | bit | since OpenTX 2.1.0 |
14
+ | math | since OpenTX 2.0.0 |
15
+ | debug | - |
16
16
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The **io** library has been simplified and only a subset of functions and their
12
12
13
13
## Examples
14
14
15
- ### Read whole file
15
+ ### Read the whole file
16
16
17
17
``` lua
18
18
-- this is an OpenTX stand-alone script
@@ -22,7 +22,7 @@ local function run(event)
22
22
local f = io.open (" foo.bar" , " r" )
23
23
while true do
24
24
local data = io.read (f , 10 ) -- read up to 10 characters (newline char also counts!)
25
- if # data == 0 then break end -- we get zero lenght string back when we reach end of the file
25
+ if # data == 0 then break end -- we get zero length string back when we reach end of the file
26
26
print (" data: " .. data )
27
27
end
28
28
io.close (f )
You can’t perform that action at this time.
0 commit comments