i am intermediate level in c programming, i tried to write my program that reads selected file details such as file size, file created date..., but i haven't clear idea about that. anybody can help me?
This is a discussion on read file details within the C Programming forums, part of the General Programming Boards category; i am intermediate level in c programming, i tried to write my program that reads selected file details such as ...
i am intermediate level in c programming, i tried to write my program that reads selected file details such as file size, file created date..., but i haven't clear idea about that. anybody can help me?
What platform?
If it's Windows use GetFileTime() and convert it from FILETIME to SYSTEMTIME with FileTimeToSystemTime(). Otherwise if it's POSIX you can use stat() from sys/stat.h.