EE605 HW1 cont'd. Output results to file.