@@ -0,0 +1,1077 @@
+package learntocode.javaapi.io_and_nio.io;%0D%0A%0D%0Aimport learntocode.javaapi.io_and_nio.FilesCreator;%0D%0A%0D%0Aimport java.io.*;%0D%0A%0D%0A%0D%0A/**%0D%0A * Data input/output streams are binary streams which allow you to read and write java primitive in files%0D%0A */%0D%0Apublic class DataInputOutputStreamExample %7B%0D%0A    public static void main(String%5B%5D args) throws IOException %7B%0D%0A        File f = FilesCreator.createFilesIO()%5B0%5D;%0D%0A%0D%0A        try (DataOutputStream dataOutputStream = new DataOutputStream(new FileOutputStream(f))) %7B%0D%0A%0D%0A            dataOutputStream.writeInt(123);%0D%0A            dataOutputStream.writeChar('H');%0D%0A            dataOutputStream.writeDouble(532.213);%0D%0A            dataOutputStream.writeBoolean(true);%0D%0A        %7D%0D%0A%0D%0A        try (DataInputStream dataInputStream = new DataInputStream(new FileInputStream(f))) %7B%0D%0A            System.out.println(dataInputStream.readInt());%0D%0A            System.out.println(dataInputStream.readChar());%0D%0A            System.out.println(dataInputStream.readDouble());%0D%0A            System.out.println(dataInputStream.readBoolean());%0D%0A        %7D%0D%0A%0D%0A    %7D%0D%0A%7D%0D%0A

Add DataInput[Output]Stream example