fsize

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
Return Value: integer value of size
 
Return Value: integer value of size
 
|
 
|
Syntax: fsize(filename)
+
[[Syntax]]: fsize(filename)
 
   
 
   
 
The fsize() function determines the size of the specified file, and returns that number as an integer.  If the file does not exist, fsize() returns a -1.
 
The fsize() function determines the size of the specified file, and returns that number as an integer.  If the file does not exist, fsize() returns a -1.
Line 26: Line 26:
 
[[category:Davinci Core]]
 
[[category:Davinci Core]]
 
[[category:Input/Output]]
 
[[category:Input/Output]]
 +
[[category:64-bit]]

Latest revision as of 11:17, 6 July 2009



64-bit SafeYes

Description

Return file size

Arguments and Return Values

Arguments: a string containing the size of the file

Return Value: integer value of size

Usage

Syntax: fsize(filename)

The fsize() function determines the size of the specified file, and returns that number as an integer. If the file does not exist, fsize() returns a -1.

Examples

dv> fsize("clndcs1.png")
455545

dv> fsize("nonexistentfile.txt")
-1

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools