For text files, we use Scanner reader=new Scanner(new File("output.txt")),
To write, we use PrintWriter pw=new PrintWriter(new FileWriter("test.txt"));
For random access file, we use RandomAccessFile rad=new RandomAccessFile("output.txt",rw).
I am confused on two things..Pls help..
Random access files means we can randomly access the file. Regardless, whether it is text, binary, ascii ?? Is this correct ??
For binary files, what do we use to read and write...???Pls help...Thank you very much..