gunmaster Posted January 11, 2006 Posted January 11, 2006 (edited) I have got a File in which i store some data. eg,This is a party and i want a drink. The spaces are at random places.I want to remove the spaces between the words and add a comma. There mey be more than one space between two words. Can anybody help me? Edited January 11, 2006 by gunmaster
BigDod Posted January 11, 2006 Posted January 11, 2006 I have got a File in which i store some data. eg,This is a party and i want a drink. The spaces are at random places.I want to remove the spaces between the words and add a comma. There mey be more than one space between two words. Can anybody help me?If you was using version 3 this is how I would do it $text = StringStripWS("this is a line of text", 4) $text1 = StringReplace($text, " ", ",") MsgBox(0, "New string is", $text1) Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
Helge Posted January 11, 2006 Posted January 11, 2006 I can say pretty certain that it ain't possible directly with v2, but there might be command lineprogram that can do what you want...If you can't find any, I'm sure someone here at the forum are happy to create one in v3 for you.Of course, you can also simply just change to v3
Recommended Posts