Hello

if i have a file residing on a unix machine, how do i get the stats of the file, ie date stamp of file, and username of file.

Best Regards

Re: Getting file stats in C 80 80

$ man stat

Re: Getting file stats in C 80 80

Great, i can now get all sorts of info for my file.

I tried using the uid to get user id, this displays integer values from the password file i think.

How can i display the username ie chrism

Re: Getting file stats in C 80 80

man getpwuid

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.