A
          / \      _             Play Now                         Nemesis on fb
          | |     | |  _______   _        _   _______    _______   _    _______
          | |\    | | |   ____| |  \    /  | |   ____|  /   ____| | |  /   ____|
 /-------/-------------------------------------------------------------------,
O= Home <=XX|  About  News  Pics  Adventurers  Wizards  Download  Connect     >
 \-------\-------------------------------------------------------------------'
          | |   \   | |  |____  | |      | | |  |____   ___ \  \  | |  ___ \  \
          | |     \_| |_______| |_|      |_| |_______| |_______/  |_| |_______/
          \ /
           V  

Documentation Area

Document Path: /doc/efun/file_size


Name: file_size - get the size of a file

Syntax:
	int file_size(string file)

Description:
	The file_size efun gets the size of a file.

Return value:
	If the file doesn't exist or is not readable by you, -1 is returned.
	If the file is a directory, -2 is returned.
	Else the size of the file in bytes is returned.

Examples:
	int file_size;
	file_size = file_size("/WELCOME");   // could be 1373

See also:


This page was generated in LPC

Imprint / Impressum