Hi --

On Thu, 28 Nov 2002, Shannon Fang wrote:

> In my class, I read some string from a text file, and store it in a
> local variable, then I defined a private method passing it the local
> variable, do some converstion, before it return, I tried to clear the
> string to "". It seems I can't do it.

You can clear a string like this:

  str.replace("")

[Is there a String#clear in 1.7 or later?]


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav