Java Scanner Read readFile(String project, boolean judge)

Here you can find the source of readFile(String project, boolean judge)

Description

read File

License

LGPL

Declaration

public static Scanner readFile(String project, boolean judge) throws FileNotFoundException 

Method Source Code


//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"));
    }
}

Related

  1. readFile(String filePath)
  2. readFile(String filePath)
  3. readFile(String filePath)
  4. readFile(String path)
  5. readFile(String pathname)
  6. readFileFully(InputStream stream)
  7. readFileToList(File file)
  8. readFileWithoutComments(File input)
  9. readFromReader(Scanner scanner)