From: Li Chen Date: 2007-08-02T03:13:07+09:00 Subject: Re: How to substitute a string with different size Tim Becker wrote: > It sounds like there's some sort of index at the beginning of the file > you're changing. E.g. at the beginning of the file it says: 3 bytes of > data, followed by an image. If you substitute "CD3" for "CD45", you'd > also have to update the index at the beginning to say "4 bytes of > data, followed by an image". > > I'm afraid I don't know FACS, but it sure sounds like the nature of > the file format doesn't allow you to just search and replace in the > file without updating some context information as well. > -tim I don't know FACS either but I ask the technical services and they say it is a kind of meta data file. If I insert extra characters into the file I have to remove equal extra spaces from somewhere else in the file. Li -- Posted via http://www.ruby-forum.com/.