FREE TUTORIALS ON C programming

Saturday, January 25, 2014



The following program help us determine the length of any file



#include <io.h>


#include <stdio.h>


#include<fcntl.h>





int main(void)


{


int fh,len;


fh = _open("c:\\simple.txt",_O_RDONLY);

len = _filelength(fh);

printf("%d",len);




getchar();
 
   return 0;



  

}

9:07 PM   Posted by Unknown with No comments

0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter

Search