Table base = loadTable("base.csv");
println(base.getRowCount() + " total rows in table");
And it works well while running it from Processing.
The base.csv file is in the data folder (yes, I tried stuff like ‘loadTable(dataPath(“base.csv”))’)
When I export this program as an application (linux or macOSX), I have this error :
base.csv does not exist or could not be read
java.lang.NullPointerException: Cannot invoke 'processing.data.Table.getRowCount()' because 'base' is null
So it seems that the application is unable to find the file. It acts same with Processing 3 or 4.
Is there something I don’t get about the path ?
I’ve seet questions with the same error code, but not related to an exported application.
Well it’s not the issue there, my csv is okay, and it works when I’m not exporting as an executable. I tried a few different path notations, except the absolute path, I’ll see if that works.
Just now I found an odd way : the csv ins in my pde file as as String wich I save then load…
I’m not sure to understand what you mean (or not sure I explained myself very clearly, as english is not my native tongue). You mean that when you export your sketch as an application it has no difficulties finding the .csv file in the data folder ?