08-29-04 07:49 AM
satish_challa@sify.com (satish challa) wrote:
# Hi,
# i want to the know the following,could any of u tell me.
# How to get the attributes of a file(Linux) through a C program
# like the time,the file last modified,last accessed etc.
Check the stat man page
man 2 stat
That will get modified and access times, mode, size, etc,
# How to check the System time in C,are there any functions defined
# in time.h or any system calls.
You can get the time in seconds with time(0)
# How to access a remote file through a C program.
Unless you're thinking of something like a locally mounted NFS volume,
this can be very complicated. You can check up on various URL libraries.
--
SM Ryan http://www.rawbw.com/~wyrmwif/
Where do you get those wonderful toys?
[ Post a follow-up to this message ]
|