Saving the contents of a variable to disk
I am writing a program that is very computation intensive. I am taking a large number of images, analysing them, and saving the results to an array. This step takes a very long amount of time, especially for large images, so it would be good if there is some way for me to save this array to disk, so I can just reload the variable the next time I run it, instead of starting from scratch.
I can do this fine with integer arrays, as I just write the numbers into a txt file and reload the next time. But I also have a File array, and I don't know how to save this one to disk. Any help? :(