大文本文件和IndexOf问题 [英] larg Text File and IndexOf problem

查看:78
本文介绍了大文本文件和IndexOf问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

问题:

推荐答案

您真的需要两个相同的线程吗?删除另一个.逐行读取文件.如果该行包含Word1,则查找Word2.在两种情况下都使用IndexOf可以确保Word2在Word1之前.
Do you really need two identical threads?  Delete the other one.  Read the file line by line.  If the line contains Word1, then look for Word2.  Use IndexOf in both cases to ensure that Word2 is before Word1.


这篇关于大文本文件和IndexOf问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆