Hi guys,
I'm doing 2 splits from a txt file, the 1st split saves the 1st char of the file
the next split saves the rest of the line.
For example the line is:
"Ab Just an example"
The first split saves.me the word "Ab" but the other split saves the phrase:
" Just an example" the thing is that I get an empty space in the begining of the phrase, what I need to change?
The code that I'm using is:
Thanks and sorry my poor english.
Regards
I'm doing 2 splits from a txt file, the 1st split saves the 1st char of the file
the next split saves the rest of the line.
For example the line is:
"Ab Just an example"
The first split saves.me the word "Ab" but the other split saves the phrase:
" Just an example" the thing is that I get an empty space in the begining of the phrase, what I need to change?
The code that I'm using is:
firstChar=txtFile.next().split(" ");
theRestPhrase=txtFile.nextLine().split("\n");
Thanks and sorry my poor english.
Regards