FINPUT statement
Purpose: FINPUT will input, from a file, lines of comma separated values into a parameter list of comma separated variables in a manner similar to the QBasic INPUT # function. The values in the file can be any of string, integer or floating point data types.
Syntax:
FINPUT hFile, Variable1, Variable2, ...
Parameters:
|
Example:
DIMP, N!, E#, L!, D$, jOPEN"TEST.TXT"FOROUTPUTASFP1FORj=1TO10FPRINTFP1, j ,",",RND*j*100,",",12356789.012345,",", j+10,",","This string has spaces"NEXTCLOSEFP1OPEN"TEST.TXT"FORINPUTASFP1WHILENOTEOF(FP1)FINPUTFP1, P, N!, E#, L!, D$" ", N!," ", E#," ", L!," ", D$WENDCLOSEFP1