This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
GopherAtl's profile picture

[1.42] write mode "wb," "ab," "rb" return nil?

Started by GopherAtl, 23 September 2012 - 05:15 AM
GopherAtl #1
Posted 23 September 2012 - 07:15 AM
decided to test my compression code in 1.42, see how much the new java-based bit api improved it's performance, and found the code crashing. Soem testing and it seems modes wb, ab, and rb all return nil when passed to open() on fs or io. D:
Orwell #2
Posted 26 September 2012 - 03:05 PM
I just discovered the same thing. I'm currently using an alternative by reading the file as text and then converting the chars to their decimal value using string.byte(char).
Cloudy #3
Posted 26 September 2012 - 03:16 PM
Thanks for the report. Fixed for the next version.