OutputStream outputStream = new FileOutputStream(targetPath + File.separator + getBaseDataFileName(dataType, domain)); PrintStream ps=new PrintStream(outputStream); ps.printf("%1$s %2$15s %3$15s ", "ID", "中文名称", "英文名称");
OutputStream输出文件需要格式时,可以结合PrintStream来增加格式