. ge :: MarkI Timesharing :: 711224B BASICLanguageReferenceManual Nov1970 . flashes (/), commas, or colons. • Leading spaces are ignored. • File names may not appear more than once in the same FILES reference statement. An asterisk may be used in place of the file name in the FILES reference statement so that thefile may be designated at a later time with a FILE statement. The file used to replace the *referenced file must already be saved in the same catalog. The * referenced file must be re-placed with a saved file before the file can be referenced. An example of the use of * referenced file
. ge :: MarkI Timesharing :: 711224B BASICLanguageReferenceManual Nov1970 . flashes (/), commas, or colons. • Leading spaces are ignored. • File names may not appear more than once in the same FILES reference statement. An asterisk may be used in place of the file name in the FILES reference statement so that thefile may be designated at a later time with a FILE statement. The file used to replace the *referenced file must already be saved in the same catalog. The * referenced file must be re-placed with a saved file before the file can be referenced. An example of the use of * referenced files appears with the description of the FILE statement. File Designator The file designator is a numeric argument used in all file input and output statements. It selectsthe file from the FILES reference statement to be used for the current operation. For ASCII files the file designator is preceded by a poxmd sign (#). For binary files it is pre-ceded by a colon. The file designator may be an integer, variable, subscripted variable, or anarithmetic expression. 60 Example For ASCII files10 FILES A;B;C;D For binary files10 FILES A;B;C;D 20 READ #1,X 20 READ: 1,X 30 READ #F,Y 30 READ: F,Y 40 READ #H(I),Z 40 READ : H(I), Z 50 READ #M*N, T 50 READ : M*N, T In Statements 30, 40, and 50 above, the value of the designator specifies the file to be used. Forexample, if the value of F in Statement 30 is 2, a data item is read from file B. If the value of a variable, subscripted variable, or arithmetic expression used as a file designatoris not an integer, the value is truncated to an integer and used as the designator. FILE Statement The identification of a file by a particular file designator may be changed within a program bythe use of the FILE statement. Valid forms of the statement are For ASCII files For binary files FILE #file designator, file name FILE : file designator, file name FILE #file designator: file name FILE: file designator: file name FILE #file designator, fi
Size: 2830px × 883px
Photo credit: © Reading Room 2020 / Alamy / Afripics
License: Licensed
Model Released: No
Keywords: ., bookcentury1900, bookdecade1910, bookidbitsaversgem, bookyear1919