Hi there,
There seems to be some 'room for interpretation' in terms of shelldir path
recognition of functions 'readfile' and 'mread'. With current snapshot on
windows XP it suffice to code 'mread("testmat.txt")' and gretl imports
the matrix if existent in shelldir.
I'm of the opinion that this behavior is correct. One needs am anchor for working with
VBA and dynamic batch files easiest to achieve with shelldir.
Btw, ever thought of offering a 'parse function' that automatically recognizes
variables presented in this form in a txt file:
scalar num01=100
string strdir="c:\\"
...
I ask since it would be a way similar to R batch files where one can pass arguments.
Cheers
Leon
Am 03.10.2013 um 20:51 schrieb Allin Cottrell
<cottrell(a)wfu.edu>:
> On Thu, 3 Oct 2013, Pindar wrote:
>
> I have some problems with gretl (snapshop on windows 8) automatically adding
> its 'shelldir' to a file path:
>
> <hansl>
> eval shelldir
> open abdata.gdt
> list xList = YEAR IND CAP
> store "testme.csv" --csv xList # writes file in
> 'shelldir' -> ok
> string readme = readfile("testme2.csv") # reads file in
'shelldir' -> ok
Not OK surely. There's no file "testme2.csv", is there?
> print readme
> open "testme.csv" # *fails *to read
> file in 'shelldir' ->*why?*
> string file = shelldir
> file +="\testme.csv"
> open @file # works
> <hansl>
With the filename fixed, the script works here. I'm not sure why it
doesn't work for you, but I've now tweaked something in the "open" code
which might make a difference (CVS and snapshots).
Allin
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users