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>C Specification</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 storing the 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)
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.
43</p>
44
45<h2>See Also</h2>
46<p>
47</p>
48
49<H2>Revision History</H2>
50<p>
512006/05/31<br>2007/05/08 Added explanation of Return Values.
52</p>
53
54
55<hr><p>CONFIDENTIAL</p></body>
56</html>
57