code working until save method,problem in loading the array content into file