B4J Question [SOLVED] jStringUtils error?

micro

Well-Known Member
Licensed User
Hi to all
this's a error on raspberry with LoadCsv(jStringUtils library function)

B4X:
Log(File.Exists("/mnt/usb/", namef)) 'true, test file the file is present
table = su.LoadCSV("/mnt/usb/", namef, ";")
'Or
table = su.LoadCSV("/mnt/usb", namef, ";")
'java.lang.StringIndexOutOfBoundsException: String index out of range: -996
With
B4X:
table = su.LoadCSV("mnt/usb", namef, ";")
'java.io.FileNotFoundException: mnt/usb/format.csv (File o directory non esistente)

The correct path is "/mnt/usb/" infact with FileExists work.
The version of jstringUtils is 1.00
Thanks
 

Cableguy

Expert
Licensed User
[SOLVED]
Excuse me
but it worked fine was a problem on the separator
You should edit the post title and add the prefix [SOLVED] to it
 
Upvote 0
Top