Tuesday, June 10, 2003 05:33 PM
Next time, you may want to include the text of the error message. This is very helpfull for the people who try to answer the questions on this forum. Java exceptions are mostly very well designed, and in my experience reading them carefully very often leads to the answer.
aside from that,
DataOutputStream is not for reading data. It is for writing data...
I suggest you get a bit more familiar with the direction of the various streams, as well as their global functionalities (buffered versus not, etc).
hope this helps