Click to See Complete Forum and Search --> : DataOutputStream question


Jprisco
September 16th, 2000, 12:19 AM
Ive just started learning about the stream classes that java provides and I hava a question.
Please forgive me for being too lazy to code a test....
I want to know if its possible to write mixed data types to a DataOutputStream... While I know the ObjectOutputStream facilitates this need Im just wondering if the DataOutputStream allows writing a pattern like int,string,int,string.....
Thanks for the time
Jim

52901368

Phill
September 16th, 2000, 01:30 AM
Hi
This, i believe is the best tip that you have ever recieved re-Java, please browse this URL .
Please look up DataOutputStream, and the methods
that it provides.
http://java.sun.com/j2se/1.3/docs/api/index.html
Also try to do a tutorial on JavaIO.
About this comment from you :
"Please forgive me for being too lazy to code a test.... "
You will have to forgive yourself for being lazy, its not up to anyone else to forgive you, it is
yourself that you are cheating, im afraid.
Be determined...
Phill