Split line with spaces c#? -
this question has answer here:
i've text in following format in file.
02-12-5-05-0108-000 2 l
there 6 spaces after -000 , 18 spaces after 2. need output following,
02-12-5-05-0108-000 2 l
what best way it?
regex.split(inputstring, @"\s+")
handle 1 or more space without need iterate , split on single space.
Comments
Post a Comment