I'd be pleased to know how I can get the "last modified" -date&time from a file... the code should be linux compatible.
This is a discussion on Last modified date? within the C++ Programming forums, part of the General Programming Boards category; I'd be pleased to know how I can get the "last modified" -date&time from a file... the code should be ...
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.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
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.
I support http://www.ukip.org/ as the first necessary step to a free Europe.