On Fri, 8 Feb 2002, Octavian Rasnita wrote: > To store the file in an array, then to insert the changed value in that > array, and then to write that array to the file, or to use a temporary file > to store each line from the source file and twhen I want to modify a line, I > have just to insert it in the temporary file.
I recommend the latter, using a temp file to write your changes out to. Reading a file into an array will eat up memory if it's a big file. -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Q: Why do WASPs play golf ? A: So they can dress like pimps. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]