#include <revolution/vf.h>
VFErr VFCutFileSize( const char* path, u32 i_file_size );
VFErr VFCutFileSizeW( const VFWchar* path, u32 i_file_size );
path |
The address that stores path and file name. Either a full or relative path may be specified. |
path |
File size. |
Returns 0 when successful.
Otherwise, returns VFErr other than 0.
Removes all data beyond the specified file size from the specified file.
The internal processing uses file segmentation. For this reason, if the file entry for segmentation or the data region (512 bytes) cannot be secured, an error occurs.
You cannot specify a file that is open or has the read-only attribute (VF_ATTR_RDONLY). Wildcards ('*' and '?') cannot be used to specify file names.
2006/08/09
2007/05/08 Added to the Description.
CONFIDENTIAL