AT&T 6300 Programmer's Manual page 299

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Example
INPUT#
Statement
If GWBASIC is scanning the sequential data
file for a string item, leading spaces, carriage
returns, and line feeds are also ignored. The
first character encountered that is not a space,
carriage return, or line feed is assumed to be
the start of a string item. If this first character
is a quotation mark ("), the string item will
consist of all characters read between the first
quotation mark and the second. Thus, a
quoted string may not contain a quotation
mark as a character. If the first character of
the string is not a quotation mark, the string
is an unquoted string, and will terminate on a
comma, carriage return, or line feed (or after
255 characters have been read). If end-of-file is
reached when a numeric or string item is
being INPUT, the item is terminated.
100INPUT#1,XS,YS,ZS
This example uses the INPUT# statement to
read three strings from a sequential file into
the program.
7-143

Advertisement

Table of Contents
loading

Table of Contents