In a program of MappedFiles i have seen this 0x8FFFFFF. It is used to specify the size of the file i.e 128 MB. How is that code generated and how can i get the code for different numbers. Can any body please help. More over i want to know the difference between file length and file size. I am confused because file length is also given in MB.
Sounds like you might be coming a mainframe background where "random access" files were the norm. Java's model of a file is just like the UNIX one: it's a sequence of bytes, nothing more, nothing less. The only way to delete a line from a file is to copy the file to new file, leaving out that line, deleting the original file, and renaming to new file to the old name.