#include
#include
#include
void main(){
struct stat status;
FILE *fp;
fp=fopen("test.txt","r");
fstat(fileno(fp),&status);
clrscr();
printf("Last date of modification : %s",ctime(&status.st_ctime));
getch();
}
Explanation:
Function int fstat(char *, struct stat *) store the information of open file in
No comments:
Post a Comment