Thanks. I thought of insertions, but the
trickier this is, the more likely it is that
it ends up as a slightly clever program that no
one ever uses.
Nick
[email protected]
Hendri Adriaens
> Hi Nick,
>
> [...]
>
> > . filei + "stuff" filename.txt
> >
> > . filei + "more stuff" filename.txt
> >
> > . filei - "earlier stuff" filename.txt
> >
> > . type filename.txt
> > earlier stuff
> > stuff
> > more stuff
> >
> > . filei - "earlier stuff" "new filename.txt"
> > file new filename.txt not found
> > r(601);
>
> This looks very nice!
>
> > There might be a case for other features, but there is a very long
> > slippery slope in sight, of creating yet another text editor.
>
> Yeah, indeed, like adding text before a specific line number
> in the text
> file ;-) But I can live with adding the text at the start and
> modify the
> parser in my program that reads the data. Thanks a lot for your code!
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/