GETATTR

(Difference between revisions)
Jump to: navigation, search
Admin (Talk | contribs)
(Created page with "= <span class="f_Header">Action</span> = Returns the file Attribute. <span style="font-family: Arial;"> </span> <span style="font-family: Arial;"> </span> = <spa...")
Newer edit →

Revision as of 22:55, 21 November 2014

Contents

 [hide

Action

Returns the file Attribute.

 

 

Syntax

bFileAttribut = GETATTR([sFile])

 

 

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
Print Getattr("somefile.bin")

Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language