Process file