i think that should not be the reason for the EOFException. There seems no way printing of some variable would cause EOF.
EOF should happen only when we are reading.
That, anyways, is not helping...
Type: Posts; User: rrahulvverma
i think that should not be the reason for the EOFException. There seems no way printing of some variable would cause EOF.
EOF should happen only when we are reading.
That, anyways, is not helping...
Thanks! :)
But actually the thing is, i know there are other options to use, but i just wanted to know what the problem was with PrintStream here...may be some hidden concept i am overooking..
I have this program to write into a file. I have a problem with my PrintStream
public static void main(String[] args) throws Exception {
int i;
DataOutputStream out = new...