Output last scan to CSV file