Hi ,
I have a tab separated file and I have to port the data to DB through StringTokenizer.Every thing is worrking fine, except whenever there is a "null",
String Tokenizer simply ignores it.
For example,
If my string is : - TERMINOLOGY<TAB>GOOGLE (<TAB> signifies tab)
then I will get two tokens as TERMINOLOGY and GOOGLE.
But if I have TERMINOLOGY<TAB><TAB>GOOGLE
then I should get three tokens instead.
TERMINOLOGY,null(or space) and GOOGLE.
But StringTokenizer returns only two.TERMINOLOGY and GOOGLE.
I have an alternate way to do this through character matching then I will have to match each and every character in my TAB separated file, which will be too time taking.
Would be grateful if anyone helps me.