- Category:
- JavaScript
- Tags:
-
[Java]
[源码]
- File Size:
- 1kb
- Update:
- 2012-12-28
- Downloads:
- 0 Times
- Uploaded by:
- 锋
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:
To Search:
File list (Check if you may need any files):
HowManyTimes.java