private void writeFile(String path, String data, boolean isDelete) {
		File file = getFile(path);
		boolean isWriteFile = true;
		if(file.exists()){
			if(isDelete){
				System.out.println("파일이 존재하여서 쓸수없습니다.");
				isWriteFile = false;
			}else{
				System.out.println("기존파일을 삭제후 재작성합니다.");
				file.delete();
			}
		}
		
		if(isWriteFile){
			BufferedWriter writeFile = null;
			try {
				writeFile = new BufferedWriter(new FileWriter(path,true));
				
				writeFile.write(data);
				writeFile.newLine();
				
			} catch (FileNotFoundException e) {
				//앞에서 체크했으니 안해도 돼겠지 
			} catch (IOException e) {
				e.printStackTrace();
			} finally{
				try {
					writeFile.flush();
				} catch (IOException e) {}
			}
		}		
	}