在文本文件中搜索字符串 [英] Search for String in text files

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

问题描述

你好
我有250个文件
我想在所有字符串中搜索一个字符串,然后返回包含该字符串的文件的名称
请帮我做
感谢您的意见:)

Hello
I am having 250 files
I want to search for a string in all of them and return the name of files that contain it
Please help me to do it
Thanks in advane :)

推荐答案

从此处开始: http://www.c-point.com/JavaScript/articles/file_access_with_JavaScript.htm [ ^ ]

更多信息:
使用JavaScript进行文件搜索 [ http://www.htmlgoodies.com/beyond/javascript/read-text-files-using-the-javascript-filereader.html [
Start here: http://www.c-point.com/JavaScript/articles/file_access_with_JavaScript.htm[^]

More at:
File Search using Javascript[^]
http://www.htmlgoodies.com/beyond/javascript/read-text-files-using-the-javascript-filereader.html[^]


这篇关于在文本文件中搜索字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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