Class Microsoft.VisualBasic.FileSystem Syntax Dim result As OpenMode = FileAttr(fileNumber) fileNumber (required; Integer) Any valid file number of a file opened with FileOpen Description The FileAttr function indicates the file-access mode for a file opened using the FileOpen procedure. One of the Microsoft.VisualBasic.OpenMode enumeration values from the following table: Value | Description |
|---|
Input | Sequential record input | Output | Sequential record output | Random | Random access within a binary or text file | Append | Sequential record output, starting from the end of the file | Binary | Access to formatted binary data |
Version Differences In VB 6, FileAttr included a superfluous returnType parameter that is no longer required in .NET. In Visual Basic 2005, the My.Computer.FileSystem object provides more robust access to file management features. See Also FileOpen Procedure |