From: Ryan Mckenzie Date: 2008-11-15T06:09:30+09:00 Subject: Finding and writing to specified area in a text file Hello, I'm trying to find a specified keyword in a text file that I have open then replace the line of that keyword with some new text. Is it possible do do this? So something like: #custom.txt hello world INSERT end of hello world So INSERT would be swapped with some new text. Thanks -- Posted via http://www.ruby-forum.com/.