EOF |
EOF(filenumber) |
Returns the value indicating if the end of a file has been reached (Boolean). |
filenumber | The number of the file (Integer). |
REMARKS |
* The actual value returned is either 1 or 0 to specify True or False. * This function should be used to test for the end of a file which has been opened for Random or Sequential input. * Any files open for Output, this function will return True. * This function should be used to avoid the error when you read past the end of a file. * This function returns False, until the end of the file has been reached. * This function returns True, when the end of the file has been reached. * Any files opened for Random or Binary access, this function returns False until the last executed GET statement is unable to read an entire record. * Any files opened for Binary access that use the Input() function will generate an error ? * You can use the CLOSE statement to close a text file. * You can use the GET statement to read data from a text file into a record. * You can use the OPEN statement to open a text file or csv file. * You can use the PRINT statement to write display formatted data to a sequential file. * You can use the WRITE statement to write data to a sequential file. * You can use the LOF function when reading from Binary files with Input. * You can use the LOC function when reading from Binary files with Input. * The equivalent .NET function is Microsoft.VisualBasic.FileSystem.EOF * For the Microsoft documentation refer to learn.microsoft.com |
Do While Not EOF(1)
TextLine = LineInput(1)
MsgBox(TextLine)
Loop
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top