Hi, I am developing an app with some similarities to a bittorrent client. The problem I am facing is in writing blocks of data to appropriate places within a file since they can arrive out of order. I have looked over the OutputStream classes and cannot see a way to write to an arbitrary point within the output file. Could anyone suggest any classes that might help me with this or anything I have overlooked.

Thanks
E1

Have just found RandomAccessFile. If anyone wants to add anything feel free though!