$filePath = "7788.xls"; $PHPExcel = new PHPExcel(); $PHPReader = new PHPExcel_Reader_Excel2007(); if(!$PHPReader->canRead($filePath)){ $PHPReader = ne... ...
分类:
Web程序 时间:
2018-09-11 16:17:55
阅读次数:
146
using System.Data; using System.IO; /// <summary> /// Stream读取.csv文件 /// </summary> /// <param name="filePath">文件路径</param> /// <returns></returns> pu ...
分类:
其他好文 时间:
2018-09-11 11:23:19
阅读次数:
185
1、~:表示用户家目录,如: cd ~ 回到用户家目录。如果是以root身份登录,则回到/root/目录下 2、Linux source命令: 通常用法:source filepath 或 . filepath 功能:使当前shell读入路径为filepath的shell文件并依次执行文件中的所有语 ...
分类:
系统相关 时间:
2018-09-04 13:35:24
阅读次数:
177
Github地址:https://github.com/kubernetes/client-go 访问kubernetes集群有几下几种方式: 使用client-go获取Deployment列表: package main import ( "path/filepath" "k8s.io/clien ...
分类:
Web程序 时间:
2018-09-04 01:44:03
阅读次数:
433
一丶删除文件 1 public string DelFile(string fileRelativePath) 2 { 3 4 try 5 { 6 string filePath = Server.MapPath("~" + fileRelativePath); 7 8 //if (System.I ...
分类:
其他好文 时间:
2018-08-24 15:59:33
阅读次数:
145
/// /// 文件上传 /// /// /// /// public string FileSaveAliyunOSS(HttpPostedFileBase file, string fileName) { string FilePath = "";... ...
分类:
Web程序 时间:
2018-08-23 14:22:39
阅读次数:
201
引自 http://blog.csdn.net/stonesharp/article/details/6744634 一.文件操作 1.打开文件 用open函数可将文件句柄与某文件联系起来,提供访问文件的接口,即打开文件. 语法为: open(FILEVAR, "filepath"); filepa ...
分类:
其他好文 时间:
2018-08-23 12:02:25
阅读次数:
254
Excel创建vcf文件,借助百度云助手导入Iphone6PlusSub CreateContractList() Set Wb = Application.ThisWorkbook FilePath = Wb.Path & "\班级通讯录.txt" Set Sht = Wb.Worksheets(... ...
分类:
其他好文 时间:
2018-08-21 22:39:02
阅读次数:
184
public void FileDownload2() { string fileName = "新建文件夹2.rar";//客户端保存的文件名 string filePath = Server.MapPath("/App_Data/新建文件夹2.rar");//要被下载的文件路径 Response ...
分类:
其他好文 时间:
2018-08-19 20:33:06
阅读次数:
149
private boolean writeToFile(BusGpsBean gpsBean) { String dataStr = DateUtil.date2String(new Date(), DateUtil.YMD); String filePath = PathKit.getWebRoo ...
分类:
编程语言 时间:
2018-08-17 17:12:33
阅读次数:
155