Login
Plus/4 EncyclopediaFirstBackNextLast

GET# Statement
Category
Reference/Commodore Basic V3.5

Topic
GET# file number,variable

This is similar to the GET statement, but instead of getting a character from the keyboard, it is taken from a device or file opened with the OPEN statement.

This statement can only be used within a program. If it is used in direct mode, an ?ILLEGAL DIRECT ERROR will occur.

Examples
10 GET# 1,A$ Gets a character from file 1

*** Note: Due some problems with drive' sync, it is a good habit to check if the received character is null (""). In this way the GET statement should be redone:

10 GET# 1,A$: IF A$="" THEN 10 Gets a valid character from file 1


Abbreviation
G SHIFT+E #



Copyright © Plus/4 World Team, 2001-2024