Why do I see no computed results in my output file?
问题 This is a follow-up to How do I average column values from a tab-separated data file, ignoring a header row and the left column?. The task was: open and read a file; reach each line, split the contents into an array, and compute the average of the numerical values; and finally to write to a new file the averages for each of the columns containing numerical values. All seems to be well up until the final point. The problem is, though I can create a new .txt file, the .txt file itself doesn't