@Override
		public void run() {
			while(!isStop){
				writeToFile();
			}
			try {
				copyAndWrite();
			} catch (IOException e) {
				e.printStackTrace();
			}
			JOptionPane.showMessageDialog(window, "");
			openErrorFile();
		}