i like this post (click again to cancel)
i dont like this post (click again to cancel) remove favorite mark from this question (click again to restore mark)

Hey Everyone, I'm using felix 2007 to analyze my data, and I wonder if it is possible to read external text files. Basically what I want to do is to get some parameters from a .txt file, fill them into a macro and compute data using these values. In a pseudo code what I would like to do is:

open external file
read file
for every line
   split string
   use values as parameters
   compute stuff
   write results

till now, what I figured out using .mac language is:

get  'full path to file: ' mything
opn txt &mything 2
for row 1 999
esc out
if &out ne 0 quit
str parse $str word count ' '

ty end

the problem is that rea does give an error, so I'm quite lost. any hint?

All the best

asked Apr 13 '12 at 12:38

LucaC's gravatar image


Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a good answer, for discussions, please use comments and please do remember to vote (login to vote)
toggle preview

powered by CNPROG