Write and read multiple objects to file

后端 未结 3 943
后悔当初
后悔当初 2020-12-03 16:24

I am designing an handwriting application for android.

I would like to write information (class LogInfo) into a log file, every time the user presses th

3条回答
  •  一个人的身影
    2020-12-03 16:43

    there is a way to save multiple objects in one file: you should first make an object array (Object [] objects) and then put your objects one-by-one as an Object in this array and then write this array using writeObject(objects) method. good luck.

提交回复
热议问题