Can you save multiple tables in a single csv file?

Hi,

You have two options :

  • I assume Car is a class. Then you can declare a static attribute being a Table object holding all the information of you cars.
    Then you can just keep adding columns with addColumn()

  • The second solution is to save a CSV file per instances of the class Car. It means that each instance is going to have a Table class as attribute. In order to save the table with different names for your cars, you can have an id for each instance (saveTable(car_table, "car_" + this.id);)

1 Like