码迷,mamicode.com
首页 >  
搜索关键字:filename    ( 7326个结果
dir cmd、the DIR Command、windows
原因 :如何在windows下的cmd.exe中只列出文件名?solve : dir \a:-d \bExtend Reading :dir[drive:][path][filename] [/A[[:]attributes]] [/B][/C][/D][/L][/N] [/O[[:]sortord...
分类:Windows程序   时间:2014-11-08 21:58:30    阅读次数:517
apache与nginx的rewrite规则问题。
尽管apache与nginx的rewirte模块都声明基于perl正则,但实际使用中还是有所不同,特别是nginx。 在apache中,在server全局配置的httpd.conf文件中使用全局变量%{…}判断并不稳妥,当我使用 %{REQUEST_FILENAME}判断请求是否为文件时就出错了。无...
分类:Web程序   时间:2014-11-08 16:38:56    阅读次数:212
C# static方法-使用迭代器循环遍历文件中的额行
//封装的方法//读取文件的值,放入集合中 public static IEnumerable ReadLines(string fileName) { using (TextReader reader=File.OpenText(fileName)) { ...
分类:Windows程序   时间:2014-11-07 18:24:25    阅读次数:234
GNU-makefle (二) Makefile 文件名,include,make工作方式
参考链接:http://blog.csdn.net/haoel/article/details/2888 文件名 make [-f|--file] [filename]  如: make -f mk1           mk1含有一个makefile的定义。 include关键字 类似C语言的效果。将被包含的文件的内容原样放置在当前位置。 include a b c d...
分类:其他好文   时间:2014-11-07 13:11:12    阅读次数:148
将ExCel导入数据库
// /// EXCEL数据转换DataSet/// /// 文件全路径/// 表名/// private DataSet GetDataSet(string fileName){string strConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data So....
分类:数据库   时间:2014-11-07 11:03:15    阅读次数:245
Java 对文件的操作
public class ReadFile { /** * 按行读取文件操作 * @throws IOException */ public void readFile(String fileName) throws IOException{ //(1)File 类 File file...
分类:编程语言   时间:2014-11-06 23:28:19    阅读次数:234
六句代码实现对文件按时间的重命名,
在很多程序中我们需要对文件进行按时间顺序的重命名。 在python只要六句就可以实现这个功能(当然开始的import不算在内) import os.path import time import glob from os import rename name_time_list=[] for filename in glob.glob('*.txt'): name_time_list...
分类:其他好文   时间:2014-11-06 21:56:29    阅读次数:216
c语言----程序记录
1.结构体写入文件,读取#include #include #include #define max 5struct books{ char title[20]; char author[20]; int price;};const char * fileName="books....
分类:编程语言   时间:2014-11-06 17:22:56    阅读次数:155
Learning Puppet — Manifests
BeginIn a text editor —vim,emacs, ornano— create a file with the following contents and filename:written and applied your first Puppet manifest.[root@...
分类:其他好文   时间:2014-11-06 17:20:35    阅读次数:392
#line 的作用是改变当前行数和文件名称
#line 的作用是改变当前行数和文件名称,它们是在编译程序中预先定义的标识符命令的基本形式如下: #line number["filename"]其中[]内的文件名可以省略。例如: #line 30 a.h其中,文件名a.h 可以省略不写。这条指令可以改变当前的行号和文件名,例如上面的这条预处理指...
分类:其他好文   时间:2014-11-06 12:17:10    阅读次数:517
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!