AMOSi:Peek$

From Amiga Coding
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.