AnalysisResult.java
package bbb;
import java.io.*;
import java.util.*;
public class AnalysisResult {
public static void main(String[] args) {
File fRead=new File("D:\\t\\score.txt");
File fWrite=new File("scocreAnalysis.txt");
try{
Writer out=new FileWriter(fWrite);
BufferedWriter bufferWrite=new BufferedWriter(out);
Reader in=new FileReader(fRead);
BufferedReader bufferRead=new BufferedReader(in);
String str=null;
while((str=bufferRead.readLine())!=null){
double totalScore=Fenxi.getTotalScore(str);
str=str+"总成绩:"+totalScore;
System.out.println(str);
bufferWrite.write(str);
bufferWrite.newLine();
}
bufferRead.close();
bufferWrite.close();
}
实验 1 举重成绩单
于 2022-05-28 10:20:32 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)