Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: reading arbitrary text files

From   Christopher F Baum <>
Subject   st: Re: reading arbitrary text files
Date   Fri, 18 Oct 2002 07:48:15 -0400

--On Friday, October 18, 2002 2:33 -0400 Roger wrote:

It therefore seems to be impossible to input an arbitrary text file into
a  list of generated string variables.
Take a nlook at Nick WInter's new -log2do2-. I don't know if the methodology employed therein meets all your concerns, but he does say

The use
of {cmd:file} allows {cmd:log2do2} to preserve references to local macros in command lines.
The if the following line appears in a log file:

{p 8 8}{inp:. display "local x is `x'"}

{p}then the reference to {cmd:`x'} will appear in the do file as {cmd:`x'}, rather than
being expanded by Stata and, therefore, blanked out.

* For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index