Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Change a file timestamp

Timestamp is a utility to change or modify the time of a file. Java provides the facility for changing a file timestamp according to the user reliability.

Tutorial Details:

Timestamp is a utility to change or modify the time of a file. Java provides the facility for changing a file timestamp according to the user reliability.

Description of program:

This program helps you in changing a file timestamp or modification time in Java. After running this program it will take a file name and its modification date in 'dd-mm-yyyy' format. Then it will check the given file is exist or not using the exists() method. When the file exists, this program will change the date of given file and it will display a message "Modification is successfully!" otherwise it will show "File does not exists!".


 

Rate Tutorial:
http://www.roseindia.net/java/example/java/io/ChangeFileDate.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Change a file timestamp

View Tutorial:
Change a file timestamp

Related Tutorials:

Integrating Databases
Integrating Databases
 
Automatic Software Distribution of Java Applications
Automatic Software Distribution of Java Applications
 
To jar or not to jar? - JavaWorld - July 1998
To jar or not to jar? - JavaWorld - July 1998
 
Java Tip 65: Measure data transfer speeds via Sun's ORB in JDK 1.2 beta 4 - JavaWorld - January 1999
Java Tip 65: Measure data transfer speeds via Sun's ORB in JDK 1.2 beta 4 - JavaWorld - January 1999
 
How to easily reconfigure your applications -- while they're running - JavaWorld - April 1999
How to easily reconfigure your applications -- while they're running - JavaWorld - April 1999
 
What's new in Java Servlet API 2.2? - JavaWorld October 1999
What's new in Java Servlet API 2.2? - JavaWorld October 1999
 
Direct network traffic of EJBs - JavaWorld November 1999
Direct network traffic of EJBs - JavaWorld November 1999
 
Process XML with JavaBeans, Part 3 - JavaWorld January 2000
Process XML with JavaBeans, Part 3 - JavaWorld January 2000
 
Add a file finder accessory to JFileChooser - JavaWorld
Add a file finder accessory to JFileChooser - JavaWorld
 
Eliminate tedious programming: Recover data with XML and Reflection - JavaWorld November 2000
Eliminate tedious programming: Recover data with XML and Reflection - JavaWorld November 2000
 
Jato: The new kid on the open source block, Part 2 - JavaWorld April 2001
Jato: The new kid on the open source block, Part 2 - JavaWorld April 2001
 
XML messaging, Part 3
XML messaging, Part 3
 
Cut down on logging errors with Jylog
Cut down on logging errors with Jylog
 
Quickly access files and directories you use repeatedly
Quickly access files and directories you use repeatedly
 
Transparently cache XSL transformations with JAXP
Transparently cache XSL transformations with JAXP
 
Related Values Processing Framework (RVPF)
Related Values Processing Framework (RVPF) Overview The Related Values Processing Framework is being developed to help the integration of Process Control Data Historian Systems. This is done by providing support for the conversion, computation and di
 
SOAP Compression Sender for Apache Axis
Axis can be extended with this transport sender to support the compression of SOAP messages. The sizes of SOAP messages are dramatically reduced resulting in faster transmission over slow network connections. The extension is easy to install and can be us
 
Reuse Tiles and Simplify UI
JavaServer Pages (JSP) technology supports application object reuse through includes, which allow other files (including other JSPs) to be sourced into a JSP file either at compile time or dynamically at application runtime. This is great for abstracting
 
Write custom appenders for log4j
The Apache Software Foundation's log4j logging library is one of the better logging systems around. It's both easier to use and more flexible than Java's built-in logging system.
 
JLAN Server v3.5 - Database Filesystems
*JLAN Server* is a high performance Java based file server supporting Windows file sharing (SMB/CIFS), NFS and FTP protocols.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.