You can use these functions with an empty table and they will create the columns.
So if you run this example code:
public class TestFileImport implements IScript
public void execute(IContainerContext context) throws OException
Table importTable = Table.tableNew();
String fileName = “C:\\Users\\gevenson\\Documents\\TestFile.csv”;
With a file like this:
value1, value2, value3
value4, value5, value6
Then you get a 3 column table produced with all columns of type string. The header row is not distinguished however so you need to take then first row and rename the columns accordingly.
We have unrivalled expertise in successful C/ETRM and TMS implementations, and digital transformation projects, as well as defining market solutions that have become system industry standards. We have a proven track record of successful deliveries at greenfield projects and at existing clients.
Copyright 2022 KWA Analytics