GETATTR
Aus MCS Wiki AVR
Inhaltsverzeichnis |
Action
Returns the file Attribute.
Syntax
bFileAttribut = GETATTR([sFile])
Remarks
bFileAttribut |
Numeric variable which is assigned with the file attribute. |
sFile |
The name of the file (no wildcard) to get the attribute from. You may also omit the name in which case the file will be used previous found by the DIR() function.
|
This functions returns the DOS file attributes. A file can have multiple attributes.
Return value |
DOS Attribute |
1 |
Read Only |
2 |
Hidden |
4 |
System File |
8 |
Volume Label |
16 |
Sub Directory |
32 |
Archive |
64,128 |
Reserved |
A file could have an attribute of 3 (hidden+ read only)
See also
INITFILESYSTEM , OPEN , CLOSE, FLUSH , PRINT, LINE INPUT, LOC, LOF , EOF , FREEFILE , SEEK , BSAVE , BLOAD , KILL ,DISKFREE , DISKSIZE , GET , PUT, FILEDATE , FILETIME , FILEDATETIME , DIR , FILELEN, WRITE , INPUT
Partial Example
'open the file in BINARY mode Print Getattr("somefile.bin")
Languages | English |
---|