home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: nntp.coast.net!torn!nott!emr1!kpratt
- From: kpratt@emr1.emr.ca (Ken Pratt)
- Subject: AREXX beginner needs help...
- Message-ID: <Dn16L1.9ID@emr1.emr.ca>
- Organization: Natural Resources Canada, Ottawa
- X-Newsreader: TIN [version 1.2 PL2]
- Date: Mon, 19 Feb 1996 16:17:25 GMT
-
- Hi, I thought I might try to learn a little about AREXX. I've had
- an Amiga for a little over a year now, and I figure it's time.
-
- Anyway, one of the first things I tried was to write a little file
- to the RAM: drive. A DO loop counts to 100 and writes the current
- value. Seems to work. However, trying to read values back in is a
- different story. I tried using a DO loop again, counting to 100, and
- then using val = READLN ('RAM:test'). Following that I put a SAY val in,
- but when I run the program my only output is a series of READLN ('RAM:test')'s
- on the screen. Code looks like this:
-
- 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.
- Can you help? From what I get out of the manual, it should work.
-
- 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?
-
- Thanks!
-
- Ken.
- --
- Ken Pratt - Geological Survey of Canada \|/
- 3303 - 33rd. St. N.W. (o) (o)
- Calgary, Alberta,Canada T3J 1E o
- E-mail - kpratt@gsc.emr.ca <--->
-