Assign file contents to the target object