public User convertTxtFileToUserObjSixMonthData(String basePath, String directoryName, String fileName, String extension) throws FileNotFoundException, IOException {
        String userPostAsString = readTxtFileAsString(basePath, directoryName, fileName, extension);
        String temp[];
        User user = new User();
        List postList = new ArrayList();
        user.setId(Integer.valueOf(fileName));
        if (userPostAsString.contains(IOProperties.DATA_SEPERATOR)) {
            temp = userPostAsString.split(IOProperties.DATA_SEPERATOR);
        } else {
            temp = new String[1];
            temp[0] = userPostAsString;

        }
        for (int i = 0; i < temp.length; i++) {
            if (temp[i].matches("[0-9]{2}:[0-9]{2}:[0-9]{2}")
                    || temp[i].length() == 8) {
                temp[i] = temp[i] + "  ";
            }
            Posts posts = new Posts();
            String time = temp[i].substring(0, 8);
            String date = temp[i].substring(9, 19);
            if (time.matches("[0-9]{2}:[0-9]{2}:[0-9]{2}")) {
                String[] tempMonth = date.split("-");
                String month = tempMonth[1];
                int monthOfYear = Integer.parseInt(month);

                if (monthOfYear <= 6) {
                    posts.setTime(time);
                    posts.setDate(date);
//                posts.setContent(temp[i].substring(20, temp[i].length()));
                    postList.add(posts);
                }
                //System.out.println(date);
            } else {
                continue;

            }
        }
        user.setUserPost(postList);
        return user;
    }