AFD to CSV format