FileLen函数
用于返回文件大小。
格式
FileLen (文件名)
参数
- 文件名
- 以字符串指定要确认的文件名。包括盘符和路径名。仅指定文件名时,是指当前目录中的文件。详情请参阅ChDisk。
注意
可使用网络路径。
返回值
用于返回文件的字节数。
参阅
FileDateTime$、FileExists
FileLen函数使用示例
String myPath$
myPath$ = "c:\TEST\TEST.DAT"
If FileExists(myPath$) Then
Print "Last access date and time: ", FileDateTime$(myPath$)
Print "Size: ", FileLen(myPath$)
EndIf
← FileExists函数 Find →