Read File Function and CoreData Fixed