I have a html table which I am trying to write to a csv file. I have the rows seperated by a \n in my array and when I print it to the csv file everything works except one problem I'm having. I want each comma value to be printed in the next column. Unfortunately it is not doing that. My current code writes all the values from each row in the html table to the correct rows in the csv.I have a html table which I am trying to write