码迷,mamicode.com
首页 >  
搜索关键字:filename    ( 7326个结果
文件操作(创建和写)
String separator = File.separator;String filename = "myfile.txt";String dir = "mydir1"+separator+"mydir2";File f = new File(dir,filename);if(f.exists....
分类:其他好文   时间:2014-09-20 18:22:29    阅读次数:157
Git在linux下的使用
*初始化git仓库,使用git inti命令  *添加文件到git仓库分两步: 1、使用git add filename   ;可分多次使用,添加多个文件到暂存区 2、使用git commit -m  “说明”  ;完成提交到分支 *查看工作区状态,使用git status 命令;如果提示有修改可使用git diff filename 查看修改内容 *HEAD指向...
分类:系统相关   时间:2014-09-20 14:05:57    阅读次数:234
leetcode Merge Intervals
1 /***************************************************************** 2 created: 2014/09/13 21:32 3 filename: merge-intervals.cpp 4 author: ...
分类:其他好文   时间:2014-09-19 18:55:35    阅读次数:141
Linux 监测 常用测试工具
fio[global]bs=16kdirect=1rw=readioengine=libaioiodepth=6write_bw_logruntime=60[test]filename=/data/disk.imgsize=4096Miperf# iperf -s -u# iperf -u -c I...
分类:系统相关   时间:2014-09-19 17:07:25    阅读次数:200
mysql主从自动配置、诊断及测试脚本
#!/bin/sh#****************************************************************************#Filename:#master_slave_configure.sh#Function:#Automaticconfigurationofmastertoslave.#Author:#gfsunny@163.com##UsageExample:#./master_slave_configure.shmip:mportsip:sport#..
分类:数据库   时间:2014-09-19 14:01:36    阅读次数:254
ExtAspNet根据Grid导出Excel
protected void Button1_Click(object sender, EventArgs e) { Response.ClearContent(); Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls"); Respo...
分类:Web程序   时间:2014-09-19 12:00:55    阅读次数:170
ExtAspNet从DataTable里导出Excel
protected void btn_ToExcel_Click(object sender, EventArgs e) { Response.ClearContent(); Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls"); R...
分类:Web程序   时间:2014-09-19 12:00:35    阅读次数:219
ExtAspNet下通过文档路径实现文档的下载
//EnableAjax="false"最重要了 protected void Button1_Click(object sender, EventArgs e) { try { string filepath = "E:\\123.xls"; string filename = Sy...
分类:Web程序   时间:2014-09-19 12:00:05    阅读次数:189
C++学习之二分查找续
本文主要对上篇博文的 main函数 进行封装。随机生成数据rand.cc 见上篇博文。封装为函数及其各自的作用如下://读取数据到vecvoid readfile(const string &filename , vector &vec);//二分查找bool BinarySearch(const ...
分类:编程语言   时间:2014-09-18 22:10:34    阅读次数:270
C#实现下载功能
C#实现下载功能protected void Button4_Click(object sender, EventArgs e) { string fileName = "aaa.txt";//客户端保存的文件名 string filePath = Server.MapPath("DownLoad/...
分类:其他好文   时间:2014-09-18 20:37:34    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!