I have these two functions that are supposed to read and save a file and then load of the save file. I'm not sure which one is messing up or if they both are or if the problem is in one of my other functions. If someone could look it over and let me know if you see anything wrong or that needs changing it would be very much appreciated.
I think it saves the file correctly but when I try and load it it outputs a whole bunch of extra lines and it won't even output the right data.
Both functions look ok. (except that line 26 loop will loop record+1 times even though you want it to loop record times).
Explain what exactly is your input and output. Also, if you don't know whether writing or reading fails, why not check the generated file?