Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !SLIPdial/Resources/UK/Help/read

!SLIPdial/Resources/UK/Help/read

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak
Filename: !SLIPdial/Resources/UK/Help/read
Read OK:
File size: 00DB bytes
Load address: 0000
Exec address: 0000
File contents
read /id=<id> [/eof=<command>] <variable> [<variable> ... ]
 Reads lines from the given file into script variables.
 The /eof qualifier defines a command to execute if end-of-file
  is reached during the read oeration.
00000000  72 65 61 64 20 2f 69 64  3d 3c 69 64 3e 20 5b 2f  |read /id=<id> [/|
00000010  65 6f 66 3d 3c 63 6f 6d  6d 61 6e 64 3e 5d 20 3c  |eof=<command>] <|
00000020  76 61 72 69 61 62 6c 65  3e 20 5b 3c 76 61 72 69  |variable> [<vari|
00000030  61 62 6c 65 3e 20 2e 2e  2e 20 5d 0a 20 52 65 61  |able> ... ]. Rea|
00000040  64 73 20 6c 69 6e 65 73  20 66 72 6f 6d 20 74 68  |ds lines from th|
00000050  65 20 67 69 76 65 6e 20  66 69 6c 65 20 69 6e 74  |e given file int|
00000060  6f 20 73 63 72 69 70 74  20 76 61 72 69 61 62 6c  |o script variabl|
00000070  65 73 2e 0a 20 54 68 65  20 2f 65 6f 66 20 71 75  |es.. The /eof qu|
00000080  61 6c 69 66 69 65 72 20  64 65 66 69 6e 65 73 20  |alifier defines |
00000090  61 20 63 6f 6d 6d 61 6e  64 20 74 6f 20 65 78 65  |a command to exe|
000000a0  63 75 74 65 20 69 66 20  65 6e 64 2d 6f 66 2d 66  |cute if end-of-f|
000000b0  69 6c 65 0a 20 20 69 73  20 72 65 61 63 68 65 64  |ile.  is reached|
000000c0  20 64 75 72 69 6e 67 20  74 68 65 20 72 65 61 64  | during the read|
000000d0  20 6f 65 72 61 74 69 6f  6e 2e 0a                 | oeration..|
000000db