Mar 20, 2004 #1 natwod Programmer Nov 21, 2002 41 US Hey, does anybody know if C# has an equivalent to the class "StringTokenizer" (Java)? I would like to split a string into "words" using spaces as enumerators, but I want it to ignore multiple spaces in a row. Any suggestions? Thanx natwod
Hey, does anybody know if C# has an equivalent to the class "StringTokenizer" (Java)? I would like to split a string into "words" using spaces as enumerators, but I want it to ignore multiple spaces in a row. Any suggestions? Thanx natwod
Mar 20, 2004 #2 chiph Programmer Jun 9, 1999 9,878 US The String class has a Split method, to which you can pass an array of delimiter characters. Don't know what it will do when it encounters multiple delimiters in a row, sorry. Chip H. If you want to get the best response to a question, please check out FAQ222-2244 first Upvote 0 Downvote
The String class has a Split method, to which you can pass an array of delimiter characters. Don't know what it will do when it encounters multiple delimiters in a row, sorry. Chip H. If you want to get the best response to a question, please check out FAQ222-2244 first