1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>VFGetFileSize(W)</title>
9</head>
10
11<body>
12
13<h1>VFGetFileSize(W)</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/vf.h&gt;
18
19s32 VFGetFileSize( const char* path );
20s32 VFGetFileSizeW( const VFWchar* path );
21</code></pre></dd></dl>
22
23<h2>Arguments</h2>
24<p>
25<TABLE border="1">
26  <tr>
27<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>path</EM></STRONG></CODE></TD>
28<TD width="520">The address that stores path and file name.<BR>Either a full or relative path may be specified.</TD>
29  </tr>
30</TABLE>
31</p>
32
33<h2>Return Values</h2>
34<PRE>
35Success: File size (0 or higher) A size of 2 GB or more is returned as 2 GB (2,147,483,647 bytes )
36Failure: -1 (at this time, VF errors can be verified with  <a href="./VFGetLastError.html">VFGetLastError</a>)
37</PRE>
38
39
40<H2>Description</H2>
41<p>
42Gets the file size in bytes. To get an accurate file size of 2 GB or higher, use the <code><a href="./VFGetFileSizeU32.html">VFGetFileSizeU32</a></code> function.<br>
43</p>
44
45<h2>See Also</h2>
46<p>
47<code><a href="./VFGetFileSizeU32.html">VFGetFileSizeU32</a></code>, <code><a href="./VFGetFileSizeByFd.html">VFGetFileSizeByFd</a></code>, <code><a href="./VFGetFileSizeU32ByFd.html">VFGetFileSizeU32ByFd</a></code>
48</p>
49
50<H2>Revision History</H2>
51<p>
522008/12/16 Added a description of the limits on the return values<br>2007/05/08  Added description of return values. <br> 2006/05/31 Initial version<br>
53</p>
54
55
56<hr><p>CONFIDENTIAL</p></body>
57</html>
58