如何在Windows 7中使用stat函数检索文件大小? [英] How to use the stat function to retrive the file size in windows 7?
本文介绍了如何在Windows 7中使用stat函数检索文件大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用stat函数在Windows 7中检索文件大小?我正在使用Windows 7 64位.统计信息每次返回-1.
How to use the stat function to retrive the file size in windows 7? I am using windows 7 64 bit. Everytime the stat returns -1. How to retrieve the correct filesize?
推荐答案
检查^ ];返回值-1
表示找不到文件,或发生了一些常规错误.
Check the documentation[^]; a return value of -1
means that the file could not be found, or some general error occurred.
这篇关于如何在Windows 7中使用stat函数检索文件大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文