I'd be pleased to know how I can get the "last modified" -date&time from a file... the code should be linux compatible.
I'd be pleased to know how I can get the "last modified" -date&time from a file... the code should be linux compatible.
Use the stat() function in sys/stat.h
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
ok, thanks. Just got a bit confused about Borland C++ compiler help.. it claimed that ctime, mtime and atime were the same
> it claimed that ctime, mtime and atime were the same
They are in DOS, cos it's a lame OS on an even lamer file system
If you want differences, then you need an NTFS partition and an NT type OS.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.