I develop a file import process in database My files are composed of lines, and each field is separated by a tab.
So I use the java split function:
String[] thisLine = line.split("\\t");
I have a problem when my last field is empty, so that my line ends with a tab, and then a line break.
Example
JFJ[TAB]ge[TAB]10400004V[TAB]31.1[TAB]0[TAB]0[TAB]0[TAB][TAB]90[TAB]
The split function does not return the last field. In this case, the split function return 9 fi
have you a solution?