码迷,mamicode.com
首页 >  
搜索关键字:txt    ( 16374个结果
C# SaveFileDialog 的用法
SaveFileDialog saveFileDialog = new SaveFileDialog(); //打开的文件选择对话框上的标题 saveFileDialog.Title = "请选择文件"; //设置文件类型 saveFileDialog.Filter = "文本文件(*.txt)|*.txt|所有文件(*.*)|*.*"; //设置默认文件类型显示顺序 saveFileDialog...
分类:其他好文   时间:2014-06-02 23:28:17    阅读次数:346
解决xp共享的批处理文件
在空白地方点右键选择新建一个文本文档,将默认的“新建文本文档.txt”文件名改名为以下红色加粗字体内容,再复制红色内容以下的黑字部分到改名后的文档。其他文件生成的方法相同。完成后根据需要双击CMD扩展名的文件即可。开通局域网共享(访问本机无需验证即可进入).cmd@ ECHO OFF@ ECHO.@...
分类:其他好文   时间:2014-06-02 13:22:27    阅读次数:325
POJ2491 Scavenger Hunt【裸map】
#include #include #include #include #include #include #include #include using namespace std; int main() { #ifndef ONLINE_JUDGE freopen("D:/1.txt","r",stdin); freopen("D:/2.txt","w",stdout...
分类:其他好文   时间:2014-06-02 07:02:20    阅读次数:253
powershell_读取ORA错误脚本
#过滤oracle警告日志文件ORA-错误 $c=Get-ContentC:\script.txt|select-string-pattern"ora-" #判断ORA-错误存在条件 #若$c返回值为null,则输出1返回值结束循环 if($c-eq$null) { write-host"STATE_OK" $STATE_OK={return1;} $b=&$STATE_OK $b } #若$c返回值不为空,..
分类:其他好文   时间:2014-06-02 03:26:07    阅读次数:197
powershell-无法加载文件,因为在此系统中禁止执行脚本
写了一个powershell脚本测试脚本,结果执行的时候报错 $a=Get-ContentC:\script.txt|select-string-pattern"ora" if($a-eq$null) { write-host"error" } else { write-host"OK" } PSD:\>.\pshell.ps1 无法加载文件D:\pshell.ps1,因为在此系统中禁止执行脚本。有关详..
分类:其他好文   时间:2014-06-02 03:17:04    阅读次数:244
【Heritrix源码分析3】Heritrix的基本架构
Heritrix可分为四大模块: 1、控制器CrawlController 2、待处理的uri列表  Frontier 3、线程池 ToeThread 4、各个步骤的处理器 (1)Pre-fetch processing chain:主要处理DNS-lookup, robots.txt,认证,抓取范围检查等。 (2)Fetch Processing chain:抓取处理器。对于每个协议...
分类:其他好文   时间:2014-06-02 03:00:49    阅读次数:419
PHP 文件操作类(创建文件并写入) 生成日志
<?php /** * 文件操作(生成日志)支持多条插入 * (如果插入多条语句并换行 用','逗号分开) * */ class log { public $path = './info.txt'; //默认值文件 public $mode = 'a'; //默认追加写 public $content = '默认值:空'; //默认内容是 空 public ...
分类:Web程序   时间:2014-06-02 02:35:45    阅读次数:231
匹配手机号
1 //FileStream fs = new FileStream(@"C:\Users\Alex\Desktop\Task.txt", FileMode.Open, FileAccess.Read); 2 //StreamReader sr = ...
分类:移动开发   时间:2014-06-02 01:33:21    阅读次数:298
linux command cp.
Examplescp file1.txt newdirCopies thefile1.txtin the current directory to thenewdirsubdirectory.cp /home/public_html/mylog.txt /home/public_html/backu...
分类:系统相关   时间:2014-06-01 12:24:00    阅读次数:263
MapReduce数据连接
对于不同文件中的数据,有时候有对应关系,需要进行连接(join),获得一个新的文件以便进行分析。比如有两个输入文件a.txt,b.txt,其中的数据格式分别如下 1 a 2 b 3 c 4 d 1 good 2 bad 3 ok 4 hello 需要将其连接成一个新的如下的文件: a good b bad c ok d hello 处理步骤可以分成两步: 1.map阶段,将两个输入文件...
分类:其他好文   时间:2014-06-01 09:05:01    阅读次数:325
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!