Just print out the value of line to make sure it is what you want.
When you're sure of that, write a simple (< 10 lines) program that does the split on that line (hardcoded). Does that work how...
Type: Posts; User: KevinWorkman
Just print out the value of line to make sure it is what you want.
When you're sure of that, write a simple (< 10 lines) program that does the split on that line (hardcoded). Does that work how...
What does line equal before you split it? You can further simplify the problem by narrowing it down to that and getting rid of all the rest.
And since the split() function is looking for a regular...
I've merged your two threads into one.
To avoid confusion, you should post an SSCCE that demonstrates exactly what you're doing, and clearly state what is happening and what you expect to happen.