home *** CD-ROM | disk | FTP | other *** search
- Path: coos.dartmouth.edu!rloisel
- From: rloisel@coos.dartmouth.edu (Rodney E. Loisel)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AREXX beginner needs help...
- Date: 20 Feb 1996 23:34:31 GMT
- Organization: Dartmouth College, Hanover, NH, USA
- Message-ID: <4gdlq7$uqj@dartvax.dartmouth.edu>
- References: <Dn16L1.9ID@emr1.emr.ca>
- NNTP-Posting-Host: coos.dartmouth.edu
-
- kpratt@emr1.emr.ca (Ken Pratt) writes:
-
- >OPEN myfile,'RAM:test,'R'
- >DO 1 to 100
- > val=READLN('RAM:test') /*Doesn't matter what's in the brackets*/
- > /* end result is that it just gets echo'd*/
- > /*on the screen*/
- > SAY val
- > END
-
- >When run, READLN('RAM:test') is written out over and over.
-
- use val= READLN('myfile') not ('RAM:test')
-
- also it's best to check a file for EOF instead of a particular number of
- lines as the file may not have been successfully written to:
-
- DO UNTIL EOF('myfile')
- val = READLN('myfile')
- say val
- END
-
- The reason you get RAM:TEST 100 times is that if ARexx can't identify a
- value it uses the literal value, in this case RAM:TEST
- >Also, is there a source of beginner level info, other than the manual for
- >AREXX? There wouldn't be a FAQ about AREXX would there?
-
- I found a lot of useful info in the Arexx Cookbook by Merrill Callaway.
-
- rloiel@coos.dartmouth.edu (Rodney.E.Loisel) Enfield NH USA
-