Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Location
TextFieldParser.EndOfData Syntax
Dim fileParser As FileIO.TextFieldParser ' ...later... Dim result As Boolean = fileParser.EndOfData
Description
The EndOfData property indicates whether the parser has passed the final valid data record in the file (TRue) or not (False). Usage at a Glance
Example
The EndOfData property provides a convenient method to check for the end of the input data when parsing the entire contents of a file. Dim fileParser As FileIO.TextFieldParser ' ...later... Do While Not fileParser.EndOfData ' ----- Read and process one record of data here. Loop fileParser.Close
Related Framework Entries
See Also
Close Method, LineNumber Property, PeekChars Method, ReadFields Method, ReadLine Method, ReadToEnd Method, TextFieldParser Object |
Категории