Java读取txt文件——(二)
Txt数据
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA74AAAGzCAIAAACHHVyhAAAgAElEQVR4nO3d36+l13kf9v0X+N6XvePfQOjWvaSBGuhtnBuiKMALIkADNEgjoD4pAjc26cA2mvbYKezYSZtYbHgydtyIjmI5ojniUBQlUZwRyRmRlkSJUi0EItOL5vTizNmzz/vjWc9a79o/Dt/PBwuDs/e71nqfd+0LfmdxnT2bn33y6VV76623fgQAAMzYiM4AAJAhOgMAQIroDAAAKaIzAACkNEbnv/eP/nHwJwAA3EZPhaqj8z9/+9F/+V/916/+1ce/8Iu/9MrDj37hF3/p/3rwV7/wi7/0+9989Au/+Ev/86vf/Idf/tpX/vR8308FAADd9YzOH/3oR7/9xoPv/OQ/vv3xT7/20f/zl9/78Zc++NGfvP+DLzz4q3/6rUfnX3/vV75071f//I0Xf+VvHuDBANibey8+88yL965+fun5uf+GbLsMvfT8/LWpzs+/1KVqgMWeeuqp4FJddP72X/3g97/x3v0f//SbP/zpve//5D98+PErjz761+9+71/e/+D3vvXwH3/t3c9/8e75V98WnQFuvXsvPvNUGGmv4/G9F5+JN2memJ5OdAZOSCk6f/Hzn/vc5z73uc9lovOffeeDOw8+ePW9D/783e++cv/hnW+994W3HvzhG9/+3de/9VuvvvWrf/7G83/0f/+z178pOgPr9tLzcehcOkN+/mWVxHvH0dXZa/mcnd+1BugoEZ0//8WfffLFTHT+w2++/+VH3//6D//69R/85Cvf+/G/++5Hf/z+97/w4MM/ePvR+Vvvv/j6g7/18r//2g9+LDoD6/ZZic7FuZ/E21Ikng3C1wMlZeA05KLzFz+fic6/de/+6x989KXvfPffvvPwzrfe+6O3HvyzN975J6+//VuvfuPX/+Lr/+O/e/2/+YN//f5HH4vOwGoNIuR0trwRE5+cJL7KuLMzzMx/9c5OPn7p+aeeeur5l+J5kg+RObCxHXKzhp0bzu9Pv/T8U8+8+OLzTz3/4s7ZaoAqc39nb54tuHQVnX/3d/7G3yhG5+//8Ie//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h33bAvlyXoCh1k3AACW2290nkyE20u7IS+5kzqZkpPRee5qUOTlfDatCvfFYva9bgAALNczOo8D5VzKHOfFtug8mKE53eZDZ7FnQ9Q+wLoBALDcHnedN1M7o+PO4z7J6FycPzPJZDH5sbXipdjfugEAsNwRzjpPRsOG6By8mY/OxfvW7iLHMtF5rvOSdQMAYLk9HtgoBs2jR+fagcXaigl78o4HWDcAAJY7wq7z5PuHj87JqWo71A4/zLoBALDcNmzd6fhPotRGwGT/uUtV0TnIzRl9o/PB1g0AgOUao3N8DqF7BJw7ujC+Omc8c7F/ZtqgqvETTT5X/uX4/WR/AAC6aInOwylGAa4qAhYDZdGtiIyZ3HzgdQMAoEqH6AwAAGuwufPsZvPsHdEZAABim83TLzy4vBSdAQAgtrkKzqIzAADERGcAAEhxYAMAAFI2Lzzt1wQBAKCs5R/iBgCAFRKdAQAgRXQGAIAU0RkAAFJEZwAASBGdAQAgRXQGAIAU0RkAAFJEZwAASBGdAQAgRXQGAICUbXS+IzoDAEBAdAYAgBTRGQAAUkRnAABI2dx5drN59o7oDAAAsc3m6RceXF6KzgAAENtcBWfRGQAAYqIzAACkOLABAAApmxee9muCAABQ5h/iBgCAFNEZAABSRGcAAEj5/wHC7MocYPbz7QAAAABJRU5ErkJggg==" alt="" />
Java代码
package DRDCWordTemplates; import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern; import org.apache.log4j.Logger;
import org.junit.Test; import bean.Question; /**
* 读取word上传上来的题目时候在最后多出一道空题,读取记事本编辑的上传上来的正常
*
* @author: qlq
* @date : 2017年7月25日上午9:04:12
*/
public class ReadTxtData {
private static Logger log = Logger.getLogger(ReadTxtData.class);
private static List<Question> list = new ArrayList<Question>(); @Test
public void readTxtData() throws Exception {
String str;
FileInputStream fis;
fis = new FileInputStream("E:\\EclipseWorkspace\\FreeMarker\\test.txt"); // 打开文件输入流
BufferedReader in = new BufferedReader(new InputStreamReader(fis, "utf-8")); // 用于保存实际读取的字符数 StringBuffer sb = new StringBuffer();
// 使用循环读取数据
String line = "";
while ((line = in.readLine()) != null) {
if (!line.equals("")) {
sb.append(line);
}
} String all = sb.toString().trim();
/* System.out.println(all);
System.out.println("--------------------------------------");*/
System.out.println(all.trim());
System.out.println("--------------------------------------"); // 分割题,以[题干]分割,注意第一个前面还有一道空的
String ti[] = all.split("\\[题干\\]");
System.out.println(ti.length);
// substring(start,end) 简单理解为从int开始取end-start个
for (int i=1;i<ti.length;i++) {
// 提取题干
System.out.println(ti[i].substring(0, ti[i].indexOf("[类型]")));
// 提取类型
int leixing_start = ti[i].indexOf("[类型]")+4;
int leixing_end = leixing_start+2;
String leixing = ti[i].substring(leixing_start,leixing_end);
System.out.println(leixing);
// 提取ABCD
if(leixing.equals("判断")){ //如果是判断题
// 提取答案,从[答案]后开始,取一个
int daan_start = ti[i].indexOf("[答案]")+4;
String daan = ti[i].substring(daan_start, daan_start+1);
System.out.println(daan);
// 提取解析
int jiexi_start = ti[i].indexOf("[解析]")+4;
String jiexi = ti[i].substring(jiexi_start);
System.out.println(jiexi);
}else{
// 提取ABCD选项:
int a_start = ti[i].indexOf("[A选项]")+5;
int a_end = ti[i].indexOf("[B选项]");
String axuanxiang=ti[i].substring(a_start, a_end);
System.out.println(axuanxiang); int b_start = ti[i].indexOf("[B选项]")+5;
int b_end = ti[i].indexOf("[C选项]");
String bxuanxiang=ti[i].substring(b_start, b_end);
System.out.println(bxuanxiang); int c_start = ti[i].indexOf("[C选项]")+5;
int c_end = ti[i].indexOf("[D选项]");
String cxuanxiang=ti[i].substring(c_start, c_end);
System.out.println(cxuanxiang); int d_start = ti[i].indexOf("[D选项]")+5;
int d_end = ti[i].indexOf("[答案]");
String dxuanxiang=ti[i].substring(d_start, d_end);
System.out.println(dxuanxiang); // 提取答案
int daan_start = ti[i].indexOf("[答案]")+4;
int daan_end = ti[i].indexOf("[解析]");
String daan = ti[i].substring(daan_start, daan_end);
System.out.println(daan);
// 提取解析
int jiexi_start = ti[i].indexOf("[解析]")+4;
String jiexi = ti[i].substring(jiexi_start);
System.out.println(jiexi);
}
} } }
结果:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXoAAAGWCAIAAAD5RN8+AAAYM0lEQVR4nO3dTXbqPBKAYa+LBbEeVsOol9A7yKgnvYSeVg8S+GxJVSoBJST5fU5ODj/C2PHNewwxutt//vu/36/7v/4tABBmM3Nzv247l9sPd3EXd53org+zcwMAH0NuAHRCbgB0Qm4AdEJuAHRCbgB0Qm4AdEJuAHRCbgB0Qm4AdEJuAHRCbgB0Qm4AdOLKzc/tsm3bdr33XDMAi3Hk5ud22S6XC7kB8JZqbn5ul+1y+7lfyQ2At1Ry83P7O6ohNwDeVJ/N7zcy5AbAm6zc7BNDbgC8Sc/NMTDkBsCb1Nwcp0vuM3EygJV5T/Pj6AbAm8gNgE74EAOATsgNgE7IDYBOyA2ATsgNgE7IDYBOyA2ATsgNgE6Oudk2vpb9Ar6N3JzmC/i2Um6e923b7/eidEHmP+jkXvvhxcvPlbGXn18oPrtzoxZBbjAGKzfp0FIjbJ7x+cLtUlS2x1yyZ6MWRG4wBldu3jy0UZ/7mBVPs6pjtuxoyFjtl9d8MuQGY1BzU/xVV5fieOVijww6ujEW5VzgCsgNxvCB9248RcjHG49ypse1ebvnIjfAd9VzI7U0tOamOEaLWv5cxhjtruS7zfmDmwm5wRi8udF+vY1hh6epHd1og13boL+XlOfmzeeaErnBGN49uqleNRbVdORibYPyAjC5pfrYZZEbjOGto5tkWPHq/kbjMMRzoxYj49BJq5t942rIDcZQyU0xE625qb56Ko73a3ql9uZzTYncYAzNL6a0oxvnoYc2xlZe9eze6tKKC2n+mU2H3GAMDWcVY1bsVoyB3JwAuxVjIDcnwG7FGMjNCbBbMQZycwLsVoyB3JwAuxVjIDcnwG7FGLzz3aiP950ojG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WFtP/QFkVuEIyPaOKBXY9g5AYP7HoEIzd4YNcjGLnBA7sewcgNHtj1CEZu8MCuRzBygwd2PYLVc+M5XYVTWlZAbhDMNQGF6H3Jx9jn5mFc5AbBKkc3STu0yhTHYDLkBsHaXkwVc6ONwWTIDYLVP6KZfLjpeVc+IL/xK5uEF5EbBIs6uqE18yE3CPaB3BTfuyE38yE3CFb5nxi0ORz2oZGsPkJuZkRuEIwXU3ggNwhW/0N4+WHkZj3kBsHezY321ytyMx9yg2CuyUMPDzD/yF083sEcyA2C8RFNPLDrEYzc4IFdj2DkBg/segQjN3hg1yMYucEDux7ByA0e2PUIRm7wwK5HMOszU+lQ/i2ujdwgmGvyUOOzmlgHuUGwhhdTJGZx5AbBXLnh0OYUyA2CVea7OQzl3+LayA2C8d4NHsgNgrk+Ec5hzimQGwTz5oZDm/WRGwTj6AYP5AbBOLrBA7lBsPp/aycc3ZwEuUGw5hdTHN0si9wgGB/RxAO7HsHIDR7Y9QhGbvDArkcwcoMHdj2CkRs8sOsRjNzggV2PYOQGD+x6BPPOd6M+3nEGoPaZcuOsZe0k5vwMIHtMMtL8UZweuUGwd3OT31v8bbcvF89d1h6SdMpeLJVpQG4QrDK9lueI429B+phqbopXC+uqV8aoGLzIDYLVj25e+6U1XvVozbLH2Be2LJEvr/l5kRsEa8uNFgh75AePbozDq3w5dt2QIjcIVsmNpwh5QYxHOdNTXtfdwvPvzzHGcRAs5AbBXBNQ/DO6lpviGO1VUp6JpjHJLckYITetyA2CVf4XTe2FyWERtaMbbbBr/ZSFG0cxHN28iNwg2CdfTOVpeF6uHrmo62ce3dgrSW7akBsEU3LD12m/gDDkhq/jFxDm/2lMDocwyNoUAAAAAElFTkSuQmCC" alt="" />
Java读取txt文件——(二)的更多相关文章
- Java读取txt文件信息并操作。
一.java读取txt文件内容 import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.Fi ...
- Java读取txt文件
package com.loongtao.general.crawler.slave.utils; import java.io.BufferedReader; import java.io.File ...
- java 读取TXT文件的方法
java读取txt文件内容.可以作如下理解: 首先获得一个文件句柄.File file = new File(); file即为文件句柄.两人之间连通电话网络了.接下来可以开始打电话了. 通过这条线路 ...
- java读取TXT文件的方法
java读取txt文件内容.可以作如下理解: 首先获得一个文件句柄.File file = new File(); file即为文件句柄.两人之间连通电话网络了.接下来可以开始打电话了. 通过这条线路 ...
- java读取txt文件内容
package read; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; public ...
- java读取txt文件的2中方法---并将内容(每一行以固定的字符分割切成2段)存到map中去
#java读取txt文件的第一种方法 /** * 方法:readTxt * 功能:读取txt文件并把txt文件的内容---每一行作为一个字符串加入到List中去 * 参数:txt文件的地址 * 返回: ...
- Java读取txt文件、excel文件的方法
Java读取txt文件.excel文件的方法 1.读取txt文件 public static String getFileContent(String filePath,String charset) ...
- Java 读取TXT文件的多种方式
1).按行读取TXT文件package zc;import java.io.BufferedReader;import java.io.File;import java.io.FileNotFound ...
- Java 读取txt文件生成Word文档
本文将以Java程序代码为例介绍如何读取txt文件中的内容,生成Word文档.在编辑代码前,可参考如下代码环境进行配置: IntelliJ IDEA Free Spire.Doc for Java T ...
- JAVA读取TXT文件、新建TXT文件、写入TXT文件
1.创建TXT文件 按照正常的逻辑写就好 先定义一个文件给定一个路径——>判断这个路径上这个文件存不存在——>若不存在则建立,try/catch根据程序提示自动生成就好 2.读取TXT文件 ...
随机推荐
- IDEA在debug时修改变量值
IDEA在debug调试时修改变量值 例如以下代码: int y1 = 0; anchor.setDy1(y1); 在代码中,这个y1永远是0,但是y1本身是个变量 debug的时候获取到这个属性,并 ...
- day22 time模块
表示方式有三种 时间戳 给机器看的 float格式 格式化的字符传 给人看的 格式化时间 元祖 计算用的 结构化时间 1 # 时间戳时间 2 # 返回一个时间戳,表示从1970.1.1日到现在的秒数 ...
- 隐藏SharePoint 2013 team sites里的follow按钮
cls $featureid = 'a7a2793e-67cd-4dc1-9fd0-43f61581207a'$webapps = Get-spWebApplicationforeach($webap ...
- Raspbian首次安装后无法使用SSH链接
使用Putty连接树莓派,出现Network Error:Connection Refused 新版的Raspbian系统默认禁用了SSH. 解决方法:在/boot分区创建名为"ssh&qu ...
- 【洛谷P4735】最大异或和
题目大意:给定一个长度为 N 的序列,支持两个操作:在序列末尾添加一个新的数字,查询序列区间 \([l,r]\) 内使得 \(a_p\oplus a_{q+1}\oplus ... a_N\oplus ...
- 【bzoj3039】玉蟾宫 悬线法
悬线法是一种更优秀的枚举方式,保证了枚举悬线的集合包含了极大子矩形所在的集合,而且由最大子矩形一定是极大子矩形的定理可知,这种枚举方式可以求出最大子矩形. 具体做法是维护矩形中每个元素对应最近的左边和 ...
- C++中const关键字的使用方法,烦透了一遍一遍的搜,总结一下,加深印象!!!
之前一直在学习C/C++,关于const的使用,这里出现一点,那里出现一点.知识用时方恨少,这一段时间正好各种笔试题,其中关于const的用法也是层出不穷,所以疲于在书本上各种翻,这里汇总一下,加深自 ...
- html5的data-*属性,我们一起认识下
html5的data-自定义属性出来很久了,我们一起认识一下. 比如如下一个代码,我们怎么取到对应的name,对应的age? 既然data-*自定义属性是它的一个属性,这个时候就可以用getAttri ...
- PHP iconv 解决utf-8和gb2312编码转换问题
就一个很简单的函数iconv();但是就是这个函数在网上找了很多例子,都无法成功转换,这是为什么呢? 终于皇天不负有心人,答案还是让我找到了. 网上的都是这样用的 <?php $co ...
- C++初始化列表(good)
本文转载自http://www.cnblogs.com/graphics/archive/2010/07/04/1770900.html 感谢作者分享 何谓初始化列表 与其他函数不同,构造函数除了有名 ...