FileAttr Function


FileAttr Function

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




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net