Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FileChannel problem  RSS feed

 
Lukas Alamar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a problem with a FileChannel object not writing all of the bytes I pass to it via a ByteBuffer array.

Say, byteBufferArray has length 100 and each ByteBuffer object in it is one line of the file so the file should have 100 lines but it has less (only 16)

fileChannel.write(byteBufferArray) only writes 16 array elements instead of 100...

I don't use this class (FileChannel) very often maybe someone can help.
[ September 17, 2004: Message edited by: Lukas Alamar ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!