I want to import data from Excel csv file and calculate the average of all channels and then write the average result in the same csv file..... I have imported data but I am unable to write the average result in csv file... Can someone help me to write a generic code which imports from csv file and calculate the average of all channels and write the result in the same csv file?