I'm trying to store the following arrays in binary, and read them back in after:
private int[10] number;
private String[10] name;
private int[10] age;
What is the best way to store them to a binary file, and read them back in afterwards? An example value for each array are:
number[0] = 1; name[0] = "Henry"; age[0] = 35;
So the data belongs sort of together.
Edit: Basically I want to store data from variables (arrays) using a binary text file, binary is a must, and then read the data back in. So in short I want to have a way to store data so when I close the application the data is not lost and can be retrieved each session.