complete-reference-vb_net_42
complete-reference-vb_net_42
ReparsePoint This means the file contains a reparse point, which is a block of
[*]
user−defined data associated with a file or a directory.
SparseFile A sparse file is typically a large file whose data is mostly zeros.
System This means your file is part of the operating system or it is used exclusively
by the operating system.
Temporary A temporary file is usually a placeholder for a file currently in volatile
memory. Your application should delete temporary files as soon as they are
no longer needed.
[*]
The asterisk denotes that the facility may not be supported by all file systems.
Table 15−14: Constants for the FileMode Parameter
Member Description
Append Seeks to the end of the existing file when it is opened; if the file does not exist,
the file system creates a new file
Create Forces the creation of a new file
CreateNew Requests the file system to create a new file with the given name
Open Requests that the file system should open an existing file
OpenOrCreate Requests that the file system should open a file if it exists; otherwise, a new
file should be created
Truncate Requests that the file system should open an existing file
The following list demonstrates the use of these attributes in the File.Open methods:
• Append This attribute can only be used in conjunction with FileAccess.Write. Any attempt to read
in the same pass gets rebuked with ArgumentException. The following code demonstrates
FileMode.Append:
526