home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3886 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: nntp.coast.net!torn!nott!emr1!kpratt
  3. From: kpratt@emr1.emr.ca (Ken Pratt)
  4. Subject: AREXX beginner needs help...
  5. Message-ID: <Dn16L1.9ID@emr1.emr.ca>
  6. Organization: Natural Resources Canada, Ottawa
  7. X-Newsreader: TIN [version 1.2 PL2]
  8. Date: Mon, 19 Feb 1996 16:17:25 GMT
  9.  
  10. Hi,  I thought I might try to learn a little about AREXX.  I've had
  11. an Amiga for a little over a year now, and I figure it's time.
  12.  
  13. Anyway, one of the first things I tried was to write a little file
  14. to the RAM: drive.  A DO loop counts to 100 and writes the current
  15. value.  Seems to work.  However, trying to read values back in is a 
  16. different story.  I tried using a DO loop again, counting to 100, and
  17. then using val = READLN ('RAM:test').  Following that I put a SAY val in, 
  18. but when I run the program my only output is a series of READLN ('RAM:test')'s
  19. on the screen.  Code looks like this:
  20.  
  21. OPEN myfile,'RAM:test,'R'
  22. DO 1 to 100
  23.     val=READLN('RAM:test')  /*Doesn't matter what's in the brackets*/
  24.                             /* end result is that it just gets echo'd*/
  25.                              /*on the screen*/
  26.     SAY val
  27.      END
  28.  
  29. When run, READLN('RAM:test') is written out over and over.
  30. Can you help?  From what I get out of the manual, it should work.
  31.  
  32. Also, is there a source of beginner level info, other than the manual for 
  33. AREXX? There wouldn't be a FAQ about AREXX would there?
  34.  
  35. Thanks!
  36.  
  37. Ken.
  38. -- 
  39.   Ken Pratt - Geological Survey of Canada            \|/   
  40.               3303 - 33rd. St. N.W.                (o) (o) 
  41.               Calgary, Alberta,Canada T3J 1E          o    
  42.   E-mail -    kpratt@gsc.emr.ca                     <--->  
  43.