if (update) { this.content = lines; this.baseDir = targetDir; updateFile(); save(); } else { File targetFile = new File( targetDir + File.separatorChar + this.fileName ); FileUtil.writeTextFile(targetFile, lines); }
saveToDir( targetDir, this.content, false );
	public void saveToDir(String targetDir, String[] lines, boolean update) 	throws IOException 	{		if (update) {			this.content = lines;			this.baseDir = targetDir;			updateFile();			save();		} else {			File targetFile = new File( targetDir + File.separatorChar + this.fileName );			FileUtil.writeTextFile(targetFile, lines);		}			}