Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>input # get input from sequential file or device</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INPUT #                  Get Input from Sequential File or Device

 INPUT #filenum, variable [,variable]...

    Receives input from a sequential file or device and assigns it to one
    or more numeric or string variables.

     filenum    The number under which the input file was OPENed. It may
                refer to a disk file, a communications file, or the
                keyboard (KYBD:).

    variable    The name of a variable (string or numeric) that will
                receive input.

   -------------------------------------------------------------------------

      Notes:    The input data must match in type the variable(s) in the
                INPUT # statement.

                String input need not be enclosed within quote marks,
                unless it contains one or more line feeds or carriage
                returns or a significant quote mark or comma.

                When receiving string input, Turbo Basic looks for the
                first character other than a space, line feed, or carriage
                return. If that character is a quote mark, Turbo Basic
                considers the string to be everything from the character
                following the quote mark up to the next quote mark. If the
                first character is not a quote mark, Turbo Basic
                terminates the string when it encounters a line feed, a
                carriage return, or a comma--or when it has received 255
                characters.

                When receiving numeric input, Turbo Basic ignores leading
                carriage returns, line feeds, and spaces, and it
                terminates the input when it encounters a carriage return,
                a line feed, or a comma.

See Also: INKEY$ INPUT INPUT$ LINE INPUT LINE INPUT #

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson