AMOSi:Peek$

From Amiga Coding
Revision as of 01:51, 17 November 2007 by Spellcoder (talk | contribs) (1 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PEEK$ reads length characters from your address and returns it as a normal AMOS string.


s$=PEEK$(address, length)
S$=PEEK$(address, length,stop$)

address is the location of the first character to be read.


length holds the maximum number of characters to copy into the new string. If it's not a sensible value, the length will be assumed to be 65500.


stop$ sets an optional break character. If it's included, AMOS will stop reading the moment it encounters a stop$ character in your memory area.