home *** CD-ROM | disk | FTP | other *** search
- Path: news.uit.no!news
- From: troels@stud.cs.uit.no (Troels Walsted Hansen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AREXX beginner needs help...
- Date: 20 Feb 96 22:09:13 +0100
- Organization: University of Tromsoe, Norway
- Message-ID: <1491.6624T1329T673@stud.cs.uit.no>
- References: <Dn16L1.9ID@emr1.emr.ca>
- NNTP-Posting-Host: uit-or4.uit.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- In article <Dn16L1.9ID@emr1.emr.ca>, kpratt@emr1.emr.ca (Ken Pratt) wrote:
-
- >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
-
-
- myfile is your filehandle, you should readln(myfile). (And when you're done
- with the file, close(myfile) it.)
-
- >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?
-
- Try searching on aminet, there is some stuff there..
-
- T r o e l s W a l s t e d H a n s e n
- troels@stud.cs.uit.no - http://www.cs.uit.no/~troels
-
-