FileChannel channel = new RandomAccessFile(new File(fileName), "rw").getChannel();
http://java.sun.com/j2se/1.4.2/docs/api/java/io/RandomAccessFile.html#RandomAccessFile(java.io.File,%20java.lang.String)
http://java.sun.com/j2se/1.4.2/docs/guide/nio/
> I was thinking about registering a SocketChannel with
> read an write not a FileChannel
Ok, you have my permission to go ahead.
; )
SocketChannel API docs:
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/channels/SocketChannel.html
NIO sockets examples:
http://www.exampledepot.com/egs/java.nio/pkg.html#Sockets
And check the NIO tutorial I posted earlier as well.