Redian新闻
>
How to know the size of a file in a prog
avatar
How to know the size of a file in a prog# Java - 爪哇娇娃
w*l
1
I am compiling a program and I have to use a function in Java to know the
size of some files. How can I do? Thanks
avatar
g*g
2
File.length();

【在 w*l 的大作中提到】
: I am compiling a program and I have to use a function in Java to know the
: size of some files. How can I do? Thanks

avatar
w*l
3
Thanks. But I hope to know the number of bytes of file not the number of
lines. Can you help me again? Thank you.

【在 g*****g 的大作中提到】
: File.length();
avatar
w*c
4
that's what it does

【在 w*l 的大作中提到】
: Thanks. But I hope to know the number of bytes of file not the number of
: lines. Can you help me again? Thank you.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。