bitescript
bitescript copied to clipboard
open a file in binary mode to save byte codes.
When I try to compile a bs file(helloworld.bs for example) first and run it with command: java helloworld I get an error: Exception in thread "main" java.lang.ClassFormatError: ....
Just as the issue: https://github.com/headius/bitescript/issues/9
I opened this file, found generated byte array was saved to a file opened not in binary mode. This will cause EOL <-> CRLF conversion on Windows. So I fix it.