wrting integers as 4 bytes to file java -


i writing java program in have write integers file. make more efficient want write int 4 bytes(which think binary file kind of thing, not sure) , while reading file want read integers directly(i not want read bytes , convert them integer). there way that.

i want write millions of integers file want method fast , efficient.

i new please put me.

use dataoutputstream class or randomaccessfile. both provide methods writing structured binary data, example "int 4 bytes" want.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -