Re: [Tutor] Add lines to middle of text file

2011-08-13 Thread Steven D'Aprano
Wolf Halton wrote: Is there a way to add text to an arbitrary place in a text file? If you are using the OpenVMS operating system, or a VAX computer, then yes. The operating system natively supports inserting data into the middle of a file. If you are using Windows, Linux, Unix, Mac OS (cl

[Tutor] Add lines to middle of text file

2011-08-13 Thread Wolf Halton
Is there a way to add text to an arbitrary place in a text file? NewAddition="this important directive. " Open config.config Add new line above "# this marker text in config.config" Insert $NewAddition in blank line created above. Save config.config Close config.config <\pseudocode> I am automa