January 2008
Beginner
352 pages
9h 6m
English
The next step is to create the code that will look for these files and then add an event into the Application log. To do this we must modify the current <ThreadFunc> method. Before we modify <ThreadFunc>, we need to add another import statement to the top of tutorials.vb that will be used interact with the file system. Although the import is not required, it makes it easier to create class instances of the IO namespace without having to declare the entire namespace for each variable declared.
Add the code shown in Example 4-3 to the top of the Tutorials.vb file.
Example 4-3. Add a new Imports statement.
Imports System.IOWe can now directly access the file system classes used to check for any text files, without using the entire ...
Read now
Unlock full access