From: Li Chen Date: 2007-08-01T01:10:21+09:00 Subject: Re: How to substitute a string with different size Yang Bob wrote: > Hi Li, > > What do you mean 'unpreditable result'? Do you mean that the size of > 'str' > object is not correct? > > > 2007/7/31, Li Chen : Actually what I try to do is to replace one string with another string in some FACS data files, in which part of them are headers in text format and the rest of them in binary format. For example replace "CD3" with "CD4" or "CD45". If it is the first case the new file is of same size and I can open the new file without losing the image information but I will lost all the image information if I replace "CD3" with "CD45". This is what I mean by unpreditable result. Li -- Posted via http://www.ruby-forum.com/.