GET with BINARY File Fills String with NULL Bytes at EOF (39380)
This article was previously published under Q39380
SUMMARY
Using the GET #n statement with a file that has been opened for BINARY
will fill the last bytes of an existing input string (which is the
third parameter of GET) with NULLs. This only occurs if the length of
the existing string exceeds the number of bytes between the file
pointer (before the GET) and the end of file. This behavior applies to
both fixed-length and variable-length string variables.
This information applies to Microsoft QuickBasic Versions 4.00, 4.00b,
and 4.50, and to Microsoft Basic Compiler Versions 6.00 and 6.00b for
MS-DOS and MS OS/2. (Earlier versions do not have a third parameter for
the GET#n statement, and are not affected.)
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB39380 |
|