Posted on 2005-05-04
i dont understand the use of DataInputStream/DataoutputStream. It is called , these classes are usued for primitive types(int, char etc).
means what ? suppose i have a file which contains like below..
12 A B C 1245
so these are primitive data, because these are ints, chars READABLE things, right ? so i CAN use datainputstream to read these data ? but same thing i could do it using a FIleReader!!....is not it ?
so , dont u think DataInputStream/DataoutputStream is a redundant class ? (bocz FileReader/ FileWriter can do theirs job !!)