FileSystem 类

定义

FileSystem 模块包含用于执行文件、目录或文件夹以及系统操作的过程。The FileSystem module contains the procedures that are used to perform file, directory or folder, and system operations. 与使用 My 模块相比,FileSystem 功能在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The My feature gives you better productivity and performance in file I/O operations than using the FileSystem module. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

public ref class FileSystem sealed
[Microsoft.VisualBasic.CompilerServices.StandardModule]
[System.Security.SecurityCritical]
public sealed class FileSystem
type FileSystem = class
Public Module FileSystem
继承
FileSystem
属性

示例

此示例使用 GetAttr 函数确定文件和目录或文件夹的属性。This example uses the GetAttr function to determine the attributes of a file and directory or folder.

Dim MyAttr As FileAttribute
' Assume file TESTFILE is normal and readonly.
MyAttr = GetAttr("C:\TESTFILE.txt")   ' Returns vbNormal.

' Test for normal.
If (MyAttr And FileAttribute.Normal) = FileAttribute.Normal Then
    MsgBox("This file is normal.")
End If

' Test for normal and readonly.
Dim normalReadonly As FileAttribute
normalReadonly = FileAttribute.Normal Or FileAttribute.ReadOnly
If (MyAttr And normalReadonly) = normalReadonly Then
    MsgBox("This file is normal and readonly.")
End If

' Assume MYDIR is a directory or folder.
MyAttr = GetAttr("C:\MYDIR")
If (MyAttr And FileAttribute.Directory) = FileAttribute.Directory Then
    MsgBox("MYDIR is a directory")
End If

注解

此模块支持访问文件和文件夹的 Visual Basic 语言关键字和运行库成员。This module supports the Visual Basic language keywords and run-time library members that access files and folders.

方法

ChDir(String)

更改当前目录或文件夹。Changes the current directory or folder. My 函数相比,ChDir 功能在文件 I/O 操作方面可提供更高的效率和更好的性能。The My feature gives you better productivity and performance in file I/O operations than the ChDir function. 有关更多信息,请参见CurrentDirectoryFor more information, see CurrentDirectory .

ChDrive(Char)

更改当前驱动器。Changes the current drive.

ChDrive(String)

更改当前驱动器。Changes the current drive.

CurDir()

返回表示当前路径的字符串。Returns a string representing the current path. CurDir 相比,FileSystem 在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The FileSystem gives you better productivity and performance in file I/O operations than CurDir. 有关详细信息,请参阅 CurrentDirectoryFor more information, see CurrentDirectory.

CurDir(Char)

返回表示当前路径的字符串。Returns a string representing the current path. CurDir 相比,FileSystem 在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The FileSystem gives you better productivity and performance in file I/O operations than CurDir. 有关详细信息,请参阅 CurrentDirectoryFor more information, see CurrentDirectory.

Dir()

返回表示文件、目录或文件夹名称的字符串,该文件、目录或文件夹具有指定的模式或文件特性,或者具有指定的驱动器卷标。Returns a string representing the name of a file, directory, or folder that matches a specified pattern or file attribute, or the volume label of a drive. Dir 函数相比,FileSystem 在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The FileSystem gives you better productivity and performance in file I/O operations than the Dir function. 有关更多信息,请参见GetDirectoryInfo(String)See GetDirectoryInfo(String) for more information.

Dir(String, FileAttribute)

返回表示文件、目录或文件夹名称的字符串,该文件、目录或文件夹具有指定的模式或文件特性,或者具有指定的驱动器卷标。Returns a string representing the name of a file, directory, or folder that matches a specified pattern or file attribute, or the volume label of a drive. Dir 函数相比,FileSystem 在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The FileSystem gives you better productivity and performance in file I/O operations than the Dir function. 有关更多信息,请参见GetDirectoryInfo(String)See GetDirectoryInfo(String) for more information.

EOF(Int32)

当达到为进行 True 或顺序 Random 而打开的文件的结尾时,此方法返回布尔值 InputReturns a Boolean value True when the end of a file opened for Random or sequential Input has been reached.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
FileAttr(Int32)

返回一个枚举,该枚举表示使用 FileOpen 函数打开的文件的文件模式。Returns an enumeration representing the file mode for files opened using the FileOpen function. FileAttr 函数相比,FileSystem 在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The FileSystem gives you better productivity and performance in file I/O operations than the FileAttr function. 有关更多信息,请参见GetFileInfo(String)See GetFileInfo(String) for more information.

FileClose(Int32[])

关闭对用 FileOpen 函数打开的文件的输入/输出 (I/O)。Concludes input/output (I/O) to a file opened using the FileOpen function. My 在文件 I/O 操作方面可为您提供更高的效率和更好的性能。My gives you better productivity and performance in file I/O operations. 有关更多信息,请参见FileSystemSee FileSystem for more information.

FileCopy(String, String)

复制文件。Copies a file. FileCopy 相比,FileSystem 在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The FileSystem gives you better productivity and performance in file I/O operations than FileCopy. 有关更多信息,请参见CopyFile(String, String)See CopyFile(String, String) for more information.

FileDateTime(String)

返回一个 Date 值,该值指示写入文件的日期和时间。Returns a Date value that indicates the date and time a file was written to. 相比 FileDateTimeMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileDateTime. 有关详细信息,请参阅GetFileInfo(String)For more information, see GetFileInfo(String)

FileGet(Int32, Array, Int64, Boolean, Boolean)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, Boolean, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅FileSystemFor more information, see FileSystem

FileGet(Int32, Byte, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, Char, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, DateTime, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, Decimal, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, Double, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, Int16, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, Int32, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, Int64, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, Single, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, String, Int64, Boolean)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGet(Int32, ValueType, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGet. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileGetObject(Int32, Object, Int64)

将数据从打开的磁盘文件读入到一个变量中。Reads data from an open disk file into a variable. 相比 FileGetObjectMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileGetObject. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileLen(String)

返回一个值,该值以字节为单位指定文件长度。Returns a value that specifies the length of a file in bytes. 相比 FileLenMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileLen. 有关详细信息,请参阅 GetFileInfo(String)For more information, see GetFileInfo(String).

FileOpen(Int32, String, OpenMode, OpenAccess, OpenShare, Int32)

打开一个文件以进行输入或输出。Opens a file for input or output. 相比 FileOpenMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileOpen. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Array, Int64, Boolean, Boolean)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Boolean, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Byte, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Char, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, DateTime, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Decimal, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Double, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Int16, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Int32, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Int64, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, Single, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, String, Int64, Boolean)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Int32, ValueType, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePut(Object, Object, Object)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePut. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FilePutObject(Int32, Object, Int64)

将变量中得数据写入磁盘文件中。Writes data from a variable to a disk file. 相比 FilePutObjectMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FilePutObject. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

FileWidth(Int32, Int32)

为用 FileOpen 函数打开的文件分配输出行宽。Assigns an output line width to a file opened by using the FileOpen function.

FreeFile()

返回一个 Integer 值,该值表示 FileOpen 函数可用的下一个文件号。Returns an Integer value that represents the next file number available for use by the FileOpen function.

GetAttr(String)

返回一个表示文件、目录或文件夹的特性的 FileAttribute 值。Returns a FileAttribute value that represents the attributes of a file, directory, or folder. 相比 FileAttributeMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than FileAttribute. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Input(Int32, Boolean)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Byte)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Char)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, DateTime)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Decimal)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Double)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Int16)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Int32)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Int64)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Object)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, Single)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

Input(Int32, String)

读取打开的顺序文件中的数据,并将这些数据赋值给变量。Reads data from an open sequential file and assigns the data to variables.

InputString(Int32, Int32)

返回 String 值,该值包含以 InputBinary 模式打开的文件中的字符。Returns String value that contains characters from a file opened in Input or Binary mode. 相比 InputStringMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than InputString. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

Kill(String)

从磁盘中删除文件。Deletes files from a disk. 相比 KillMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than Kill. 有关更多信息,请参见FileSystemFor more information, see FileSystem .

LineInput(Int32)

从打开的顺序文件中读取一行并将其赋值给一个 String 变量。Reads a single line from an open sequential file and assigns it to a String variable.

Loc(Int32)

返回指定打开文件中当前读/写位置的值。Returns a value that specifies the current read/write position in an open file.

Lock(Int32)

控制其他进程对使用 Open 函数打开的文件的全部或部分的访问。Controls access by other processes to all or part of a file opened by using the Open function. MyLock 相比,Unlock 功能在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The My feature gives you better productivity and performance in file I/O operations than Lock and Unlock. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

Lock(Int32, Int64)

控制其他进程对使用 Open 函数打开的文件的全部或部分的访问。Controls access by other processes to all or part of a file opened by using the Open function. MyLock 相比,Unlock 功能在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The My feature gives you better productivity and performance in file I/O operations than Lock and Unlock. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

Lock(Int32, Int64, Int64)

控制其他进程对使用 Open 函数打开的文件的全部或部分的访问。Controls access by other processes to all or part of a file opened by using the Open function. MyLock 相比,Unlock 功能在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The My feature gives you better productivity and performance in file I/O operations than Lock and Unlock. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

LOF(Int32)

返回使用 FileOpen 函数打开的文件的大小(以字节为单位)。Returns the size, in bytes, of a file opened by using the FileOpen function. 相比 LOFMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than LOF. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MkDir(String)

新建目录。Creates a new directory. 相比 MkDirMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than MkDir. 有关详细信息,请参阅 CreateDirectory(String)For more information, see CreateDirectory(String).

Print(Int32, Object[])

将已设置显示格式的数据写入顺序文件。Writes display-formatted data to a sequential file.

PrintLine(Int32, Object[])

将已设置显示格式的数据写入顺序文件。Writes display-formatted data to a sequential file.

Rename(String, String)

重命名磁盘文件或目录。Renames a disk file or directory. 相比 RenameMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than Rename. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

Reset()

关闭所有使用 FileOpen 函数打开的磁盘文件。Closes all disk files opened by using the FileOpen function. 相比 ResetMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than Reset. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

RmDir(String)

移除现有目录。Removes an existing directory. 相比 RmDirMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than RmDir. 有关详细信息,请参阅 DeleteDirectoryFor more information, see DeleteDirectory.

Seek(Int32)

返回 Long,它指定使用 FileOpen 函数打开的文件中的当前读/写位置;或设置使用 FileOpen 函数打开的文件中的下一个读/写操作的位置。Returns a Long specifying the current read/write position in a file opened by using the FileOpen function, or sets the position for the next read/write operation in a file opened by using the FileOpen function. 相比 SeekMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than Seek. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

Seek(Int32, Int64)

返回 Long,它指定使用 FileOpen 函数打开的文件中的当前读/写位置;或设置使用 FileOpen 函数打开的文件中的下一个读/写操作的位置。Returns a Long specifying the current read/write position in a file opened by using the FileOpen function, or sets the position for the next read/write operation in a file opened by using the FileOpen function. 相比 SeekMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than Seek. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

SetAttr(String, FileAttribute)

设置文件的特性信息。Sets attribute information for a file. 相比 SetAttrMy 功能可使文件 I/O 操作的效率更高、性能更好。The My feature gives you better productivity and performance in file I/O operations than SetAttr. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

SPC(Int16)

PrintPrintLine 函数一起使用以定位输出。Used with the Print or PrintLine function to position output.

TAB()

PrintPrintLine 函数一起使用以定位输出。Used with the Print or PrintLine functions to position output.

TAB(Int16)

PrintPrintLine 函数一起使用以定位输出。Used with the Print or PrintLine functions to position output.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
Unlock(Int32)

控制其他进程对使用 Open 函数打开的文件的全部或部分的访问。Controls access by other processes to all or part of a file opened by using the Open function. MyLock 相比,Unlock 功能在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The My feature gives you better productivity and performance in file I/O operations than Lock and Unlock. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

Unlock(Int32, Int64)

控制其他进程对使用 Open 函数打开的文件的全部或部分的访问。Controls access by other processes to all or part of a file opened by using the Open function. MyLock 相比,Unlock 功能在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The My feature gives you better productivity and performance in file I/O operations than Lock and Unlock. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

Unlock(Int32, Int64, Int64)

控制其他进程对使用 Open 函数打开的文件的全部或部分的访问。Controls access by other processes to all or part of a file opened by using the Open function. MyLock 相比,Unlock 功能在文件 I/O 操作方面可为您提供更高的效率和更好的性能。The My feature gives you better productivity and performance in file I/O operations than Lock and Unlock. 有关详细信息,请参阅 FileSystemFor more information, see FileSystem.

Write(Int32, Object[])

将数据写入一个顺序文件。Writes data to a sequential file. 通常使用 Input 从文件中读取使用 Write 编写的数据。Data written with Write is usually read from a file by using Input.

WriteLine(Int32, Object[])

将数据写入一个顺序文件。Writes data to a sequential file. 通常使用 Input 从文件中读取使用 Write 编写的数据。Data written with Write is usually read from a file by using Input.

适用于

另请参阅