I want to index large text file about 1 gb, so I store in another file new line positions, to access the file later by RandomAccessFile, here is my code