updated fileRead function