Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code JSP/Java
Title: HowManyTimes Download
 Description: 1 use file howmanytimes.dat to record the program HowManyTimes.java the number of runs. Compiled a program HowManyTimes.java, it first checks file howmanytimes.dat exists, if the file does not exist, then the 1st run, create the file integer 1, written in the file, close the file if the file already exists read from the file number of runs k is the first k+1 run, from the File object to read the file was last modified time and seek methods to the location of the file read and write over the file header, written the integer k+1, close the file. Run effect as shown below:
 Downloaders recently: [More information of uploader 锋]
 To Search:
File list (Check if you may need any files):
 

HowManyTimes.java
    

CodeBus www.codebus.net