How do I flush a 'RandomAccessFile' (java)?

前端 未结 6 1675
孤街浪徒
孤街浪徒 2021-02-14 21:44

I\'m using RandomAccessFile in java:

file = new RandomAccessFile(filename, \"rw\");
...
file.writeBytes(...);

How can I ensure that this data i

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-14 22:00

    I learned that you can't..

    Some related links here: http://www.cs.usfca.edu/~parrt/course/601/lectures/io.html and here: http://tutorials.jenkov.com/java-io/bufferedwriter.html

提交回复
热议问题