Appending to an ObjectOutputStream

前端 未结 6 1576
再見小時候
再見小時候 2020-11-22 03:00

Is it not possible to append to an ObjectOutputStream?

I am trying to append to a list of objects. Following snippet is a function that is called whenev

6条回答
  •  一向
    一向 (楼主)
    2020-11-22 03:45

    How about before each time you append an object, read and copying all the current data in the file and then overwrite all together to file.

提交回复
热议问题