1单词30个及复习,长篇阅读一单元
2高数微分方程预习
3蓝桥杯试题,Java预习,二叉树学习。
package student1;
import student.Student;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.IOException;
import java.util.Scanner;
import java.io.PrintWriter;
public class Testfile {
static int i=0;
public static String STUArray[];
public static void main(String[] args) {
System.out.println("————————调出系统请按1——————");
System.out.println("————————输入数据请按2——————");
STUArray = new String[100];
int l = 0;
Scanner U= new Scanner(System.in);
int j=U.nextInt();
if(j==1){
File c= new File ("D:\\student\\student.information.txt");
try(
FileReader a= new FileReader(c);
BufferedReader a1=new BufferedReader(a);
){
while(true){
int i=0;
String line= a1.readLine();
if(line==null){
break;
}
System.out.println(line);
for(i=0;i<7;i++) {
STUArray = line.split(" ");
}
sj(STUArray,l);
l++;
}
}
catch(IOException e){
System.out.println("输入错误!");
e.printStackTrace();
}
}
if(j==2){
System.out.println("输入break退出");
File c1= new File("D:\\student\\student.information.txt");
try(
FileWriter A=new FileWriter(c1);
PrintWriter C=new PrintWriter(A);
){
while(true) {
String Sti="break";
Scanner xie = new Scanner(System.in);
String sier = xie.nextLine();
if(sier.equals(Sti)) {
break;
}
C.println(sier);
C.flush();
}
}catch (IOException r){
r.printStackTrace();
}
}