eMbedded Visual Basic: Windows CE and Pocket PC Mobile Applications By Chris Tacke, Timothy Bassett
Table of Contents
Chapter 3. Manipulating Files
The Microsoft FileSystem and File controls are distributed with the platform SDK for each CE platform. They are both included in the MSCEFile.dll library. Controls are added to projects in eVB in the same manner as in other versions of Visual Basic (by choosing Components from the Tools menu). You can add the File and FileSystem controls specifically to your project via the Microsoft CE FileSystem Control 3.0 component library (see Figure 3.1).
Figure 3.1. Adding the FileSystem control library to your project.
Adding the reference places both controls into the eVB toolbox. The File control's button shows a small file icon, whereas the FileSystem control shows a small two- drawer filing cabinet (see Figure 3.2).
Figure 3.2. The eVB toolbox with the standard controls, the File control and the FileSystem control.
The Controls' Object Models
This chapter will cover a large amount of the File and FileSystem controls' object models. Covering the entire object model for any library in a single project is difficult and often impractical . Many methods are used in just about every project, whereas others are used only for specific, narrowly focused uses.
The following is a list of the methods and properties used in this chapter:
File Control
FileSystem Control
Close
Dir
Input
FileDateTime
LinePrint
FileLen
Open
GetAttr
EOF
Kill
As a reference guide, Appendix A includes all the object models for the File and FileSystem controls.