LocationMicrosoft.VisualBasic.FileIO.TextFieldParser DescriptionThe TextFieldParser object simplifies the process of extracting data fields from delimited and fixed-width text data files. Existing data files are opened with the My.Computer.FileSystem.OpenTextFieldParser method, which returns an object of type TextFieldParser. You can also create a new instance of TextFieldParser directly, passing the file name as a constructor parameter. The object includes several useful members for extracting data from the data file. You must close the TextFieldParser object when finished with it. This is normally done by calling the object's Close method. However, you can also use the Using statement to release all parser-related resources when the Using statement is complete. Using fileParser As New FileIO.TextFieldParser(dataFile) ...code to parse the file goes here... End Using Public MembersThe following members of the TextFieldParser object have their own entries elsewhere in this chapter.
Related Framework Entries
See AlsoMy Namespace, OpenTextFieldParser Method |