|
How can I open the same file for reading as well as writing |
|
|
You can open the same file for reading as well as reading in Java using RandomAccessFile class.
RandomAccessFile class supports simultanous reading and writing from/to the same file if you
open the file in "rw" mode:
RandomAccessFile raf =
new RandomAccessFile("filename.txt", "rw");
|
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.