Writing binary file
<p>How to Skip a line when Writing data back to binary file? For example, I want to let the char double and int to be separate line in binary file.</p>

<pre><code>DataOutputStream o = new DataOutputStream(new FileOutputStream("sampleData.dat"));

for (int i = 0;i&lt;counter;i++) {
    for (int j = 0;j&lt;type.size();j++) {
        if (type.get(j).equals("char")) {
            o.writeChar(c.get(i));
        }
        if (type.get(j).equals("double")) {
            o.writeDouble(dou.get(i));
        }
        if (type.get(j).equals("int")) {
            o.writeInt(inte.get(i));
        }
    }
}
</code></pre>
