I am working on a (database-ish) project, where data is stored in a flat file. For reading/writing I\'m using the RandomAccessFile
class. Will I gain anything f
Looking at the JavaDoc on RandomAccessFile the class itself is not synchronized. It appears that you can use a synchronous mode for read and write operations. If you don't use the synchronized mode though you are going to have to manage the locks on reading and writing yourself which is far from trivial. The same is going to be true for straight java.io when using multiple threads.
If at all possible you probably want to look at using a database since a database provides this kind of multi-threaded abstraction. You might also look at what syslog options are available for Java or even log4j.