Sorry about that. Page 983 is misleading. FileSystem doesn't seem to be in System.IO, it's My.Computer.FileSystem. In real life, it's defined in the Microsoft.VisualBasic.FileIO namespace. I need to fix that appendix.
The System.IO.File class provides Shared methods for working with files: AppendText, Create, Copy, Exists, Delete, etc. See page 986.
My guess is that you want the FileInfo class (page 991). A FileInfo object represents a file and has methods for working with it. For example, you create the object like this:
Dim file_info As New FileInfo("C:\test.txt")
Then you can use its methods:
If file_info.Exists() Then ...
If that's not what you mean, let me know what you want to do with the file and I'll see if I can find the appropriate class.
Rod
[email protected]
Author of "Visual Basic 2005 Programmer's Reference"
http://www.vb-helper.com/vb_prog_ref.htm
Sign up for the free
VB Helper Newsletters at
http://www.vb-helper.com/newsletter.html