AMOSi:Peek$

From Amiga Coding
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
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.