写一个导入方法使用java
import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner;
public class Importer {
public static void importData(String filePath) throws FileNotFoundException {
File file = new File(filePath);
Scanner scanner = new Scanner(file);
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
// 处理每一行数据
}
scanner.close();
}
}
原文地址: https://www.cveoy.top/t/topic/bNlw 著作权归作者所有。请勿转载和采集!