Home » Core Java » io » DataOutputStream

DataOutputStream

Write String as chars to file with DataOutputStream

This is an example of how to write a String as chars to a File using a DataOutputStream. The DataOutputStream lets an application write primitive Java data types to an output stream in a portable way. An application can then use a data input stream to read the data back in. To write a String as chars to a File ...

Read More »

Write String as bytes to file with DataOutputStream

In this example we shall show you how to write a String as bytes to file with the DataOutputStream. The DataOutputStream lets an application write primitive Java data types to an output stream in a portable way. An application can then use a data input stream to read the data back in. To write a String as bytes to file ...

Read More »

Write char to file with DataOutputStream

With this example we are going to demonstrate how to write a char to a file with the DataOutputStream. The DataOutputStream lets an application write primitive Java data types to an output stream in a portable way. An application can then use a data input stream to read the data back in. In short, to write a char to a ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns