package dynamic.people;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;

public class ImageLookup {

    public static String filename = "config_people_image_lookup.csv";

    public static HashMap<String, String> GetImageLookup() throws IOException {

        HashMap<String, String> map = new HashMap<String, String>();

        BufferedReader in = new BufferedReader(new FileReader(filename));
        String s;
        while ((s = in.readLine()) != null) {
            if(s.length() > 0){
//                System.out.println(s);
                String[] split = s.split(",");
                map.put(split[0], split[2]);
            }
        }

        return map;

    }


}
