I have a process where I need to insert a row of data into a blank CSV file and add rows of data to an existing CSV file (depending on if the CSV file is blank).
How could I add a row of data like this:
The issue I am running into is adding data without headers.
I have attempted using the write table to CSV keyword but the headers are mandatory and breaks my process every time.
The other method I attempted was csv.writer() but cannot get passed weird syntax errors.
My code for that is:
The Evaluate csv.writer(${csv_file_obj}) line is what is failing with the error:
I do not know why I am getting syntax errors here as the CSV object seems to be in the correct format.
In summary, the 2 functions I need are:
-
Add a row of data to a blank CSV file
-
Add a new row of data to a CSV file directly under the last row of data.