From: Aldric Giacomoni Date: 2008-11-15T08:06:59+09:00 Subject: Re: Finding and writing to specified area in a text file In all of my research online, the only way that I've found to do it is to read the entire file, replace what you wanna replace, write to a new file, then copy over the original one. I hope someone can show me a better way. --Aldric Ryan Mckenzie wrote: > 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