A S
A S

Reputation: 2974

How to read float array from binary file in android?

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...

Upvotes: 0

Views: 1427

Answers (1)

Snicolas
Snicolas

Reputation: 38168

Use a DataInputStream's readFloat method. Loop until you get an EOFException.

Upvotes: 1

Related Questions