From: barjunk Date: 2007-06-12T07:25:03+09:00 Subject: Re: Ruby way to update a file in place On Jun 11, 1:11 pm, "Bill Guindon" wrote: > On 6/11/07, Li Chen wrote: > > > Where can I find some information about mmap? > > Google is your friend...http://www.google.com/search?source=ig&hl=en&q=ruby+mmap&btnG=Google+... > > http://raa.ruby-lang.org/project/mmap/ > > > thanks, > > > Li > > > -- > > Posted viahttp://www.ruby-forum.com/. > > -- > Bill Guindon (aka aGorilla) > The best answer to most questions is "it depends". Although it may be wrong, I recently used lockfile and temporary files to do inline editing. It is probably inefficient, but it seems to work for what I am using it for. Maybe someone can point out how to use the -i feature of ruby from within the program instead of a shell command, that would work nice as well. In the application I was working on, there were possibilities for multiple access at the same time. Mike B.