Article ID: 20573
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft QuickBasic 1.0
- Microsoft QuickBASIC 1.0b
- Microsoft QuickBASIC 1.0b
- Microsoft BASIC Compiler 6.0b
- Microsoft BASIC Interpreter 2.0
- Microsoft BASIC Interpreter 2.1 for Macintosh
- Microsoft BASIC Interpreter 3.0 for Macintosh
This article was previously published under Q20573
SUMMARY
This information applies to Microsoft QuickBASIC Versions 1.00, 1.00a,
1.00b, Microsoft BASIC Compiler Version 1.00, and Microsoft BASIC
Interpreter Versions 2.00, 2.10, and 3.00 for the Apple Macintosh.
To read with Sequential access from a file created with Random access,
you must put a carriage-return character, CHR$(13), at the end of each
Random record. In Sequential access, each record is delimited with a
carriage-return character, and records can have different lengths.
To read with Random access from a file created with Sequential access,
all the records must have the same length; otherwise, the records will
not line up properly into the fielded variables. Each record in a file
created sequentially will have the number of characters written to it
plus an extra byte for the return CHR$(13) at the end. The record
length specified in the random OPEN statement should thus reflect the
number of characters in the record plus a byte for the return.
Additional query words: BasicCom MQuickB
Keywords: KB20573