A
A
Anton Savchenko2016-09-17 12:27:25
Java
Anton Savchenko, 2016-09-17 12:27:25

How to count serialized objects from a file into an ArrayList of these same objects?

I didn't have any problems with recording. The problem with reading is that I don't know how to check if there is still data in the file and how to check it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nirvimel, 2016-09-17
@nirvimel

Read objects in an infinite loop until an EOFException is thrown.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question