G
Gustaf Liljegren
I'd like a simple way of extracting everything that's not whitespace on each
line in a file. For example, if the program encounters this line
1 2\t\t3 \t\t4
I want a string array like this
{"1", "2", "3", "4"}
I tried working with String.Split() but found that it doesn't automatically
remove the empty elements in the resulting array. I haven't found any
normalize method in the API either, to replace the sequences of two or more
whitespace characters to a single space. Hope there's something I've
overlooked.
Thanks,
Gustaf
line in a file. For example, if the program encounters this line
1 2\t\t3 \t\t4
I want a string array like this
{"1", "2", "3", "4"}
I tried working with String.Split() but found that it doesn't automatically
remove the empty elements in the resulting array. I haven't found any
normalize method in the API either, to replace the sequences of two or more
whitespace characters to a single space. Hope there's something I've
overlooked.
Thanks,
Gustaf