Help needed on loading table and creating search box to search filter data (Bible)

Hi again, :wink:

From your second screenshot, you can see that thereā€™s an error from the red colored message that appeared at the bottom of the window.

In programming, compilers (what translate your code into machine code) will most of the time indicate where your error is located and why.

It says :

mammals.csv does not exist or could not be read
NullPointerException

So the file clearly doesnā€™t exist! :stuck_out_tongue_winking_eye:

First letā€™s look at what the loadTable() function takes as arguments :

loadTable(filename)

filename String: name of a file in the data folder or a URL.
options String: may contain ā€œheaderā€, ā€œtsvā€, ā€œcsvā€, or ā€œbinā€ separated by commas

So the first parameter must be the path of an existing file on your computer (here we want a .csv file). Here ā€œexistingā€ is important because otherwise the program canā€™t load it.

Now in Processing, when you indicate a path itā€™s supposed to be in a data folder inside your sketch folder, where your Processing code is located if you saved your project.

So are you sure that you have a mammals.csv file in a data folder in the sketch folder? To see it, you can go in the options Sketch -> Go to sketch folder.

Note : this is the second post, see the first one : Where is the directory to save your .csv data?