How do I read and write files that are not sequential-access or
random-access? I am currently looping through a array of values that
represent various devices we are monitoring. The data is currently being
written into these files by a Perl program, but we now have a new Java /
Corba API process that is much faster at retrieving the data. The
problem I am running into is that I want to keep these files looking the
same as they do now to help expedite the new process. (Later I am going
to use a database because that is much better, but the boss wants this
new process up an running quickly.) Are there JAVA equivalents for the
following Perl commands?
open (INPUT, "$infile")
open (OUTPUT, ">$outfile")
Please note that the output has the > in it so that it can be written to.