Java IO query

Hi ,I am new to java programming .I am trying to work with flat file (non-relational database) , if anybody can tell me is there way to do add , modify , update, delete record operations using Java IO package.
[230 byte] By [S0960a] at [2007-11-27 0:01:26]
# 1
Why not switch to a relational database?
DrLaszloJamfa at 2007-7-11 15:52:42 > top of Java-index,Java Essentials,Java Programming...
# 2

You mean treat a flat file like a database? There is no default functionality for this kind of thing within standard java. Your best bet might be to try to set up a windows specific ODBC driver(or something applicable to whatever platform you are using) to a file that can do these things you want, and then use that within java.

tjacobs01a at 2007-7-11 15:52:42 > top of Java-index,Java Essentials,Java Programming...
# 3
I have to use java io and a flat file.
S0960a at 2007-7-11 15:52:42 > top of Java-index,Java Essentials,Java Programming...
# 4
Then yes, there is a way to do that with classes in the java.io package. Your basic tool is the RandomAccessFile class. Beyond that it's up to you to design your own indexing methods and everything else that is normally done by databases.
DrClapa at 2007-7-11 15:52:42 > top of Java-index,Java Essentials,Java Programming...