Have a try to make some change for the while-loop,
You need to reset the value to cv =0; spacedWord="";
when you are trying to split the word.
like,
while ((word=readBot.readLine()) != null) {
//spliter
cv =0;
spacedWord="";
while ( cv <word.length()) {
spacedWord = spacedWord + " " + word.charAt(cv);
cv = cv + 1;
}
System.out.println(word + " OR " + spacedWord);
}
You will get the result as follows:
This program will read from a File at :TEST.txt
APPLE OR A P P L E
ELABORATE OR E L A B O R A T E
FUTURE OR F U T U R E
PROOF OR P R O O F
LOGICAL OR L O G I C A L