Here you can find the source of readFile(String project, boolean judge)
public static Scanner readFile(String project, boolean judge) throws FileNotFoundException
//package com.java2s; //License from project: LGPL import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; public class Main { public static Scanner readFile(String project, boolean judge) throws FileNotFoundException { if (judge) return new Scanner(new File("E:\\novice\\judgedata\\" + project + ".dat")); else/*from www. j a v a 2 s. co m*/ return new Scanner(new File("sampledata\\" + project + ".dat")); } }