Path Separator error [Android mode]

I’ve got some troubles with path in Android mode. In Java mode, I use:

Table t = loadTable("data/Snake" + snakeNo + ".csv");

It works well. In Android mode, I add the following code:

String path = dataPath("Snake" + snakeNo + ".csv");
Table t = loadTable(path);

I want to get access to files Snakei.csv but failed in Android mode
I think it will work, but got this exeption

FATAL EXCEPTION: Animation Thread
java.lang.IllegalArgumentException: File /data/data/processing.test.smartsnakescombine/files/Snake1.csv contains a path separator
at android.content.ContextWrapper.openFileInput(
at processing.core.PSurfaceNone.openFileInput(
at processing.core.PApplet.createInputRaw(
at processing.core.PApplet.createInput(
at processing.core.PApplet.loadTable(
at processing.core.PApplet.loadTable(
at processing.test.smartsnakescombine.SmartSnakesCombine$Snake.loadSnake(
at processing.test.smartsnakescombine.SmartSnakesCombine$World.loadBestSnakes(
at processing.test.smartsnakescombine.SmartSnakesCombine$World.snakeFusion(
at processing.test.smartsnakescombine.SmartSnakesCombine.keyPressed(
at processing.core.PApplet.keyPressed(
at processing.core.PApplet.handleKeyEvent(
at processing.core.PApplet.dequeueEvents(
at processing.core.PApplet.handleDraw(
at processing.core.PSurfaceNone.callDraw(
at processing.core.PSurfaceNone$

Could you tell me how to solve it :grinning::yum:(Thanks in advanced!)

I use that path syntax who run under Android or Windows :slight_smile:
JSONArray values = loadJSONArray(“Data\\Index.json”);

Using two \