| 
 |  |  | |  GET# Statement  |  | Reference/Commodore BASIC V3.5
 
 
 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.
 
 
 
 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 10Gets a valid character from file 1
 
 
 G SHIFT+E #
 
 
 
 | 
 |  |  | 
 
 
 Copyright © Plus/4 World Team, 2001-2025. Support Plus/4 World on Patreon
 |