Java: create temp file and replace with original

前端 未结 2 1234
小鲜肉
小鲜肉 2021-01-14 13:57

i need some help with creating file

Im trying in the last hours to work with RandomAccessFile and try to achieve the next logic:

  1. getting a file object
2条回答
  •  [愿得一人]
    2021-01-14 14:41

    you can direct overwrite file. or do following

    1. create file in same directory with diff name

    2. delete old file

    3. rename new file

提交回复
热议问题