Java BufferedReader Read loadPathPreferencesFromFile(File inputFile)

Here you can find the source of loadPathPreferencesFromFile(File inputFile)

Description

Loads the path preferences from a text file.

License

Apache License

Parameter

Parameter Description
inputFile the file to load the path preferences from

Exception

Parameter Description
FileNotFoundException if a FileNotFoundException occurs
IOException if an IOException occurs

Declaration

public static void loadPathPreferencesFromFile(File inputFile)
        throws FileNotFoundException, IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.BufferedReader;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

import java.io.IOException;

public class Main {
    /**//from w  ww. ja  va2  s.c  om
     * Loads the path preferences from a text file.
     *
     * @param inputFile the file to load the path preferences from
     *
     * @throws FileNotFoundException if a FileNotFoundException occurs
     * @throws IOException if an IOException occurs
     */
    public static void loadPathPreferencesFromFile(File inputFile)
            throws FileNotFoundException, IOException {
        BufferedReader br = new BufferedReader(new FileReader(inputFile));
        try {
            String line;
            while ((line = br.readLine()) != null) {
                line = line.trim();
                if (!line.equals("") && !line.startsWith("#")) {
                }
            }
        } finally {
            br.close();
        }
    }
}

Related

  1. loadMimeTypes(Reader in, Map extMap, Map mimeMap)
  2. loadModel(String fileName, Hashtable dictionary, Hashtable> modelPairs)
  3. loadNameMap(String mapName, boolean reverseMap)
  4. loadNumUsers(String fileName)
  5. loadPartitions(String fileName)
  6. loadPrivateKeyFile(File privateKeyFile)
  7. loadQueryFromFile(String queryFile)
  8. loadQueryNodeInfo(String input_file)
  9. loadReaderFromClasspath(Class c, String filename)