file parse and save