Einzelnen Beitrag anzeigen
Alt 10.10.2012, 02:17   #81
leecher
Moderator
C_FSIZE

E r g e b n i s / R e s u l t

The C_FSIZE function returns the size of a file previously opened with the C_OPEN function

B e s c h r e i b u n g / D e s c r i p t i o n

The C_FSIZE function gets the size of the file associated with the file descriptor fd.

S y n t a x

Code:
res = call ('C_FSIZE' , fd)
P a r a m e t e r

fd - The file descriptor you obtained from C_OPEN

R e t u r n s

C_FSIZE returns the number of bytes of the open file.

B e i s p i e l / E x a m p l e

Code:
attach 'FILE0'
attach 'FILE1'
fd = CALL ("C_OPEN", "FILE.TXT", "r")
PUT CALL ("C_FSIZE", fd) ! Returns the size of FILE.TXT
b = CALL("C_CLOSE", fd)
detach 'FILE0'
detach 'FILE1'
leecher ist offline   Mit Zitat antworten