Welcome, and thanks for reading up on the forum rules! You sound like you're mostly on the right track with your file handling.

First, I think you want an array of struct, not a struct of arrays....