Search found 2 matches
- Wed Jul 31, 2013 10:04 pm
- Forum: Support and Development
- Topic: file:read() returning strange values on EOF
- Replies: 3
- Views: 2053
Re: file:read() returning strange values on EOF
Any idea how long till 0.9.0 will be released? Is there any workaround I can use to keep coding on 0.8.0 in the meantime, or a reasonably-stable debug build of 0.9.0 I can download from somewhere?
- Wed Jul 31, 2013 9:35 pm
- Forum: Support and Development
- Topic: file:read() returning strange values on EOF
- Replies: 3
- Views: 2053
file:read() returning strange values on EOF
Reading past the end of the file with file:read(1) is returning non-nil values. Original code is quite long so I won't post it unless it's requested, but a shorter version is below. The original returned 59 indefinitely on EOF, the code below returns 7. The test code writes the return values to a fi...