public void ReadLogFile() {

		try {
			

			if (returnValue == JFileChooser.APPROVE_OPTION) {
				fileWithXmlAndGarbageData = chooserForReadingLogFile.getSelectedFile();
				filepath = fileWithXmlAndGarbageData.getCanonicalPath()
						.substring(
								0,
								fileWithXmlAndGarbageData.getCanonicalPath()
										.lastIndexOf(File.separator));
				System.out.println(filepath);
				PathOfFileUsedInDateBasedGrouping = filepath;

				PathOfFile = fileWithXmlAndGarbageData.getAbsolutePath();
			}
			if (returnValue == JFileChooser.CANCEL_OPTION) {
				try {
					fileWithXmlAndGarbageData = null;
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		} catch (Exception e) {

			e.printStackTrace();
		}
	}