1. RandomAccessFile Concept forums.oracle.comYou need to do it programatically. i.e. programtically. There is no set method. With each write you need to check the size, and if it will be too large, then you need to shift everything to the front (which will take a while if you do it this way), or better, close the file, rename it, and open a new file ... |
2. RandomAccessFile tailing with UTF-8 forums.oracle.comHi, I was thinking of using readUTF(), but it doesn't seem to read until the end of line, but until the end of file. That is, it could possibly return a string which is not delimited by a newline. So if another process is writing into a log file we could end up with reading records half way into the line. ... |
3. Random Access File issues forums.oracle.comHi! I would like to create a random access file using txt. Text based consolem not applets, but my problem is i dont know how to create seperate records and view them. I know how to make a random access, and read it. To make things clear, i enter Employee's Name, and Phone number, then create a new employee and so ... |
4. Faster RandomAccessFile forums.oracle.com |
5. deleting file from RandomAccessFile forums.oracle.com |
6. RandomAccessFile: Delete Record forums.oracle.comWell as far as I can see you have variable length records. Now you don't seem to be dealing with them as if they were variable length and that's a problem. It seems right now you are dealing with the variable length solely on hope. Anyway... here is what I would do. At the start of each record write two ints. ... |
7. RandomAccessFile's getFilePointer() does it take time? forums.oracle.comA physical seek operation has almost nothing to do with a logical seek operation due to disk fragmentation. Don't bother about keeping track of a "current" file pointer yourself. Simply try to minimize the number of logical seek operations. On top of that: the OS keeps a couple of LRU (Least Recently Used) and LA (Look Ahead) buffers itself, so you ... |
8. Random Access File forums.oracle.com1. John 035699 3. Michael 033826 4. Josephine 456645 but the file above will waste the storage space if i wanted to move everything up like record below then cpu resources will need to be used to do that 1. John 035699 3. Michael 033826 4. Josephine 456645 anyway i can do it or is that any existing class or method ... |