Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Close Method

Location

TextFieldParser.Close

Syntax

Dim fileParser As FileIO.TextFieldParser ' ...later... fileParser.Close( )

Description

The Close method closes the file represented by a TextFieldParser object and ends the active parsing process.

Usage at a Glance

You must close the TextFieldParser object when finished with it. Use the object's Close method or create the object instance with the Using keyword. See the TextFieldParser Object entry in this chapter for an example.

Related Framework Entries

  • Microsoft.VisualBasic.FileIO.TextFieldParser.Close Method

See Also

EndOfData Property, ReadFields Method, ReadLine Method, ReadToEnd Method, TextFieldParser Object

Категории