Question by
Abuthar · Aug 01, 2017 at 04:26 PM ·
serializationloadinglistsargumentoutofrangeexception
Loading a list of Ints (Serialization)
So i cannot seem to deserialize/load a list of ints I saved. I used this method to save them:
And this method to load them:
However when I try to load it using binaryformatter, filestream, etc I get this error:
Which is because, I'm assuming here, the list has no objects in it when loaded, even though It saves properly and I can see the data when I open up the file. Every other piece of data I save that is not in list form loads properly.
In short, how do I go about loading a list of integers using a for loop? I can't seem to find the answer anywhere. I've been on this for 2 days and I feel like the answer is right in front of my but I don't realize it.
Comment