Issue
I have a binary file I wish to read for my android app. the file's content was saved and written in "float" format.
How do I read this data to a float array?
Thanks...
Solution
Use a href="https://docs.oracle.com/javase/7/docs/api/java/io/DataInputStream.html" rel="nofollow noreferrer">DataInputStream's readFloat method. Loop until you get an EOFException.
Answered By - Snicolas
Answer Checked By - Timothy Miller (JavaFixing Admin)