[Gretl-users] using open and outfile with strings
cottrell at wfu.edu
Sun Nov 27 10:35:48 EST 2016
On Sun, 27 Nov 2016, Matteo Pelagatti wrote:
> Hi again,
> now I cannot solve this simple problem. Is it possible to open data files
> with "open" or create a text file with "outfile" using an already defined
> string with path and file name?
> Something like
> string pf = "c:/path/file.ext"
> open pf
> outfile pf
> (this does not seem to work)
That should actually attempt to open a file named "pf". To get the
value of the string named "pf" substituted into the command-line,
use the @-apparatus:
string pf = "c:/path/file.ext"
outfile @pf --write
More information about the Gretl-users