OK, this is getting weirder!
In an attempt to solve the read problem I modified the write code as follows
Now, when I run the above code fileSize_0 starts at zero, and increases by 390784 bytes as expected.
However, when the file reaches Integer.MAX_VALUE in size, instead of returning the fileSize as expected this is the output I get:
and fileSize_0 continues to decrease in magnitude.
Can anyone decipher this?? This is beyond my understanding. What I don't understand is that in my original code, I wrote 50000
word vectors to file which created the original 19 gig file. How can the size of the file as reported by the FileChannel get smaller when in fact its getting bigger??? Could this be part of the reason I can access locations larger than Integer.MAX_VALUE?
Cheers,
[ June 16, 2004: Message edited by: Emilio Gagliardi ]
[ June 16, 2004: Message edited by: Emilio Gagliardi ]