码迷,mamicode.com
首页 >  
搜索关键字:filepath    ( 875个结果
【C#】使用C#将类序列化为XML
直接上代码: public static class XmlSerializer { public static void SaveToXml(string filePath, object sourceObj, Type type) { if...
分类:Windows程序   时间:2015-04-03 09:07:00    阅读次数:144
android软件版本升级时,安装新版本后,没有出现安装成功界面或直接回到桌面
Intent intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); //android4.0以后需要添加这行代码 intent.setDataAndType(Uri.parse(filePath), "application/vnd.android.package-archi...
分类:移动开发   时间:2015-03-31 10:56:04    阅读次数:130
C# 判断服务器上文件是否存在
var path = " FramePath" ; var filePath = Server.MapPath(path); if (System.IO.File.Exists(filePath)) ...
分类:Windows程序   时间:2015-03-20 16:15:33    阅读次数:262
java.io.File在作为参数传递时体现值引用的特点
File是对象引用,但在作为参数传递时体现值引用的特点,即 在方法中被重新赋值,此赋值操作仅在当前方法中有效。public class FileUtils { public static void main(String[] args) { String filepath=Fil...
分类:编程语言   时间:2015-03-20 15:51:21    阅读次数:334
python utf-8转化gbk
1.?utf-8转化gbk def?ReadFile(filePath,encoding="utf-8"): ????with?codecs.open(filePath,"r",encoding)?as?f: ????????return?f.read() ?? def?WriteFile(filePath,u,encoding="gbk"):...
分类:编程语言   时间:2015-03-20 13:05:10    阅读次数:226
php读取excel(支持03,07)
需要用到PHPExcel这个类附上代码 1 canRead($filepath)){10 $objReader = PHPExcel_IOFactory::createReader('Excel5');11 if (!$objReader->canRead($filepath)){1...
分类:Web程序   时间:2015-03-18 20:28:22    阅读次数:305
asp.net mvc 中使用静态页
方法1:在Global.asax文件中增加protected void Application_BeginRequest(object sender, EventArgs e){if (Context.Request.FilePath == "/")Context.RewritePath("inde...
分类:Web程序   时间:2015-03-18 15:38:21    阅读次数:187
php 文件和表单内容一起上传
0){ $filepath = './'.$upfile['name']; move_uploaded_file($upfile['tmp_name'],$filepath); $res = mysql_query("INSERT INTO 表(filename,explain,f...
分类:Web程序   时间:2015-03-17 10:16:30    阅读次数:220
Node.Js之【Stream问题】
var fs = require('fs'), path = require('path'), out = process.stdout;var filePath = 'F:/IMG_0221.MOV';var readStream = fs.createReadStream(filePath);v...
分类:Web程序   时间:2015-03-15 23:39:31    阅读次数:152
UE4 将本地图片转成UTexture2D 在runtime显示
UFUNCTION(BlueprintCallable, Category = "TextureFromDisk") static class UTexture2D* GetTexture2DFromDiskFile(const FString& FilePath);class UTe...
分类:其他好文   时间:2015-03-15 02:00:51    阅读次数:2565
875条   上一页 1 ... 65 66 67 68 69 ... 88 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!