public String readTxtFileRangeRow(String filePath) {
        StringBuilder contents;
        contents = new StringBuilder();
        try {
            String encoding = "UTF-8";
//            filePath = RecoverUserFromDbTask.class.getResource("/").getPath() + filePath;
            File file = new File(filePath);

//            System.out.println("Thread.currentThread().getContextClassLoader().getResource(filePath).toString():" + filePath);
            if (file.isFile() && file.exists()) { //判断文件是否存在
                InputStreamReader read = new InputStreamReader(
                        new FileInputStream(file), encoding);//考虑到编码格式
                BufferedReader bufferedReader = new BufferedReader(read);
                String lineTxt = null;
//                System.out.println(this.taskIndex);
//                int i = Integer.valueOf(this.attachData.toString());//(Integer) this.attachData;直接这样会报 错的

                int start = this.taskIndex * this.perTaskNumber;
                int end = start + this.perTaskNumber;
                int index = -1;

                while ((lineTxt = bufferedReader.readLine()) != null) {
//                    System.out.println(lineTxt);
                    index++;
                    if (index < start) {
                        continue;
                    } else if (index >= end) {
                        break;
                    } else if (index != start) {
                        contents.append(",");
                    }
                    contents.append(lineTxt.trim());
                }
                read.close();
            } else {
                System.out.println("找不到指定的文件:" + filePath);
            }
        } catch (IOException e) {
            System.out.println("读取文件内容出错:" + e.toString());
            e.printStackTrace();
        }
        System.out.println("contents:" + contents.toString());
        return contents.toString();
    }