From: Kirk Haines Date: 2004-08-19T11:55:01+09:00 Subject: Re: Ruby way to update file lines On Thu, 19 Aug 2004 10:45:54 +0900, Mark Probert wrote > > What is the most efficient way to read in the file, update the line, > and then write it back to the file. One update would be to place a > '#' in col 1 > > #name3:foo3:bar:other > > Any thoughts appreciated. Unless the file is very large, my initial thought is just to read the file to an array. Edit, then rewrite the file. Kirk Haines