DataOutputStream

Write int to a file using DataOutputStream

Want to learn quickly?
Try one of the many quizzes. More than Java 400 questions with detailed answers.

Add Comment

  • This is neat and is quite useful, but it very slow in cases where a number needs to be written to a file (as data) thousands of times. Is there a faster alternative short of reading the bits of an int or float individually?

Sponsors

Facebook Fans

Online Shopping – Flipkart