Skip to content

Tag: java

Reading floats from binary file javascript

I’m trying to read floats in javascript from a binary file that is created using Java. The file is created in Java using DataOutputStream: The file is retreived by http request and read like this: dataLoaded function: Output: Expecting: The file is sent with php: It seems that somewhere there is a flaw …

Get out of a foreach [closed]

My C++ teacher once told me that if I have to use a break to get out of a loop I didn’t think enough about the loop condition. So did she (very good teacher btw) just fail to mention that foreach …