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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -