package com.ioTest;
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.Scanner;
public class Exem_Scode2 {
@SuppressWarnings("resource")
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
File f1 = new File("F:\\exam02");// 创建操作目录的文件对象
System.out.println("有多少人参见考试?");
int personSum = input.nextInt(); // 从控制台获取本次考试的人数
System.out.println("有多少题?");
int tiSum = input.nextInt(); // 从控制台获取本次考试的题数
/*
*
* 获得.txt文件所在目录的路径的字符串表达形式的数组
*
*
*/
String[] fPtah = f1.list();
int a = 0;
String[] path = new Strin