private void initFileText() {
        java.io.File folder = new java.io.File(SERVER_FOLDER);
        java.io.File[] files = folder.listFiles(new FilenameFilter() {

            @Override
            public boolean accept(java.io.File dir, String name) {
                if ((dir.getAbsolutePath() + "\\").equals(SERVER_FOLDER) && name.contains(".index")) {
                    return true;
                }
                return false;
            }
        });
        if (files != null) {
            for (java.io.File f : files) {
                String fileName = f.getName();
                String prefix = fileName.substring(0, fileName.indexOf("."));

                // add new file index
                if (!sharedIndexed.containsKey(prefix)) {
                    BufferedReader reader = null;
                    try {
                        reader = new BufferedReader(new InputStreamReader(new FileInputStream(f.getAbsoluteFile())));
                        String str = null;
                        List<String> text = new ArrayList<String>();
                        while ((str = reader.readLine()) != null) {
                            text.add(str);
                        }
                        sharedIndexed.put(Integer.parseInt(prefix), text);
                    } catch (FileNotFoundException e) {
                        e.printStackTrace();
                    } catch (IOException e) {
                        e.printStackTrace();
                    } finally {
                        try {
                            reader.close();
                        } catch (IOException e) {
                            e.printStackTrace();
                        }
                    }
                }
            }
        }

    }