How to read a file and put it into an array of objects?

My advice to you would be to create a custom object reader. The custom object reader will read in the object and separate the data of the object into some data structure (array etc). The object could possibly return that structure. You could use this object reader once for each line. When the data structure is returned after each object read, you can do with it what you want. You can of course take this idea and modify it to your liking. If you like this response accept it.

Leave a Comment