I want to split my string by every space. I have e.g. string array as "12343212 MARK SPENCER"
In this code, I want it to print out like this;
But, it prints like this;
Can you help me fix it please?
I read a file like this;
23454323 ABCD EFGH
34565434 KLMN OPRS
12342312 MARK SPENCER
After I read it, i created an array of strings like this;
string array, so that each element will be a line;
a = 23454323 ABCD EFGH
a = 34565434 KLMN OPRS
a = 12342312 MARK SPENCER
This part works because when I say print a[i] element, it just prints that line. I passed a because I want to split that line. As you said, it looks fine without a problem. But now I see that the first space character is actually made with tab key, which is after 12343212 before MARK. How can I include the tab keys also as the tokens?