Results 1 to 1 of 1
Thread: Randomly accessing files
-
Randomly accessing files
Before randomly accessing a file, it has to be opened. While creating a RandomAccessFile object, you have to specify whether you want to read or read and write.
After opening the file, readXXX() or writeXXX() methods are used to perform I/O on the file.Java Code:RandomAccessFile raf = new RandomAccessFile("file.txt", "r"); RandomAccessFile raf2 = new RandomAccessFile("file2.txt", "rw");
Similar Threads
-
Randomly accessing a text file
By bugger in forum New To JavaReplies: 1Last Post: 12-07-2007, 06:20 PM -
Accessing a file randomly
By Java Tip in forum Java TipReplies: 0Last Post: 11-10-2007, 08:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks