Forums Register Login

write byte array to a file

+Pie Number of slices to send: Send
Hello all, i am having problems. I am trying to simply write the array bytes out to a .dat file,
it is creating the file but it is empty. I'm not to good at Java IO so I need help - what am i doing wrong??
thanks , here is the code:
[ edited to break apart the long code line in order to alleviate the pain of scrolling left-right -ds ]
[ June 18, 2003: Message edited by: Dirk Schreckmann ]
+Pie Number of slices to send: Send
Try closing the stream. bos.close()
Hope it helps!
Barry
+Pie Number of slices to send: Send
I'm moving this to the IO and Streams forum...
+Pie Number of slices to send: Send
Actually we've got one here already, thanks.
He's my best friend. Not yours. Mine. You can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 891 times.
Similar Threads
write array of bytes to a file
FTP with sun.net.ftp.
Using Apache Commons Codec
IO Performance
Read and Write
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:12:40.