public static String[] readFile(String fileLocation) {
        Vector<String> tags = new Vector<String>();
        BufferedReader br = null;
        
        try {
            br = new BufferedReader(new InputStreamReader(
                        new FileInputStream(fileLocation)));

            String tag = "";
            while ((tag = br.readLine()) != null) {
                tags.add(tag);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

        String[] tagString = new String[tags.size()];
        for (int i = 0; i < tags.size(); i++) {
            tagString[i] = (String) tags.get(i);
        }

        return tagString;
    }