parse File and Tempfile