读取目录下多个代码文件 并把内容写入到一个新的txt或者word。
package javawhl.file;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.io.InputStreamReader;
import java.io.FileInputStream;
import java.io.OutputStreamWriter;
import java.io.FileOutputStream;
public class RuanZhu {
private static List<String> pathList = new ArrayList<>();
static String oneFile = "";
static int lines = 0;
static int codeRequestLine = 3500;
public static void main(String[] args) {
System.out.println("arg0");
folderMethod2("D:\\01whl\\07工作文档\\软著申请\\软著代码ios");
for (int i = 0; i < 20; i++) {
buildFile(i);
}
}
priv