• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Read the Time Stamp of a File  RSS feed

 
Vijay Kumar koganti
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I would like to develop a code which should be able to Retrieve the Time Stamps of the LOg Files(8-10) files and it needs to check that time stamp with the current Time stamp and if it is Less than a defined Limit it needs to Write a Error Log if not needs to Write a Success S.O.P stating the Time stamp of that File + Current Time Stamp, and all these should be logged into a Text File at a defined location.

Can some one guide me through the process..

Thanks in Advance,
vijay kumar k.
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a peek at the JavaDoc for the File Class. This class allows you to get the time that file was last modified -- which I am assuming is what you meant by timestamp.

Henry
[ July 04, 2006: Message edited by: Henry Wong ]
 
Ray Thibeault
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I was looking for this but somehow I thought it would start with "get".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!