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...
But is that not exactly the problem Data Streams are meant to handle?
I mean if they are capable of outputting primitive type data to a file, but i don't see the data...something just seems amiss....
I used DataStream to write some primitive type data to a file, and then read it back. The data was read back and displayed on the console fine, but when i saw the file i was writing to i found lots...
Hello People.
This is Rahul. I am a 4th year engineering student in Information Technology.
Looking forward to having an enlightening experience here.