Created
August 6, 2014 14:48
-
-
Save tolik518/2f1e1753e27b9be34832 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| file = new RandomAccessFile(new File(fileName), "r"); | |
| [...] | |
| try | |
| { | |
| file.seek(81); | |
| int iYear = file.read(); | |
| file.seek(82); | |
| int iMonth = file.read(); | |
| file.seek(83); | |
| int iDay = file.read(); | |
| file.seek(84); | |
| int iHour = file.read(); | |
| file.seek(85); | |
| int iMinute = file.read(); | |
| file.seek(86); | |
| int iSecond = file.read(); | |
| System.out.print("Datum: " + iDay+ "/" + iMonth + "/" +iYear +"\n"); | |
| System.out.print("Zeit: " + iHour+ ":" + iMinute + ":" +iSecond+ "\n"); | |
| } | |
| catch (IOException e) { | |
| e.printStackTrace(); | |
| } | |
| [...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment