특정 파일의 사이즈를 구하는 함수가 있는지요. 예를 들어.. a.txt 라는 파일의 사이즈가 300k 보다 작으면 삭제하도록 할려고 하거든요.. 이게 가능한지..(C언어로)
1. fseek(fp, 0, SEEK_END); ftell(fp);
2. man fstat state->st_size
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
1.fseek(fp, 0, SEEK_END);ftell(fp);
1.
fseek(fp, 0, SEEK_END);
ftell(fp);
2.
man fstat
state->st_size
댓글 달기