FILEATTR
From MCS Wiki AVR
(Difference between revisions)
(Created page with "= <span class="f_Header">Action</span> = Returns the file open mode. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <spa...") |
|||
Line 84: | Line 84: | ||
= <span class="f_Header">See also</span> = | = <span class="f_Header">See also</span> = | ||
− | [ | + | [[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]] |
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> |
Latest revision as of 18:44, 11 February 2013
Contents |
Action
Returns the file open mode.
Syntax
bFileAttribut = FILEATTR(bFileNumber)
Remarks
bFileAttribut |
(Byte) File open mode, See table |
bFileNumber |
(Byte) Number of the opened file |
This functions returns information about the File open mode
Return value |
Open mode |
1 |
INPUT |
2 |
OUTPUT |
8 |
APPEND |
32 |
BINARY |
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
ASM
Calls |
_FileAttr |
|
Input |
r24: Filenumber |
|
Output |
24: File open mode |
r25: Errorcode |
|
C-Flag: Set on Error |
|
Partial Example
'open the file in BINARY mode Open "test.biN" For Binary As #2 Print Fileattr(#2); " file mode"' should be 32 for binary Put #2 , Sn ' write a single Put #2 , Stxt ' write a string Close #2
Languages | English • Deutsch |
---|