How to make streams to read and write files (in binary) .
I have found a few Streams but do not know which one to use.
they are as follows:-
PrintStream p=new PrintStream(new FileOutputStream("myfile.text"));
DataInputStream in=new DataInputStream(new FileInputStream("myfile.txt"));
BufferedReader br=new BufferedReader(new FileReader("myfile.text"));
Printwriter pw=new PrintWriter(new FileWriter("myfile.text"));
Please tell me which ones to use to reading and writing files.
Help will be highly appreciated.