服务器端:f = open(filename)data = f.read()f.close()response = HttpResponse(data,mimetype='application/octet-stream') response['Content-Disposition'] = 'at...
分类:
其他好文 时间:
2014-07-10 00:40:41
阅读次数:
204
private string fileName = HttpContext.Current.Server.MapPath("~/Student.xml"); protected void Page_Load(object sender, EventArgs e) { if (!I...
分类:
其他好文 时间:
2014-07-07 23:30:32
阅读次数:
260
source命令用法:source FileName作用:在当前bash环境下读取并执行FileName中的命令。注:该命令通常用命令“.”来替代。如:source .bash_rc 与 . .bash_rc 是等效的。source命令(从 C Shell 而来)是bash shell的内置命令。点...
分类:
系统相关 时间:
2014-07-07 22:15:15
阅读次数:
293
/////////////////////////////////////////////////////////////////////////////////// FileName : bool_value.cc// Version : 0.10 created ...
分类:
其他好文 时间:
2014-07-07 20:32:46
阅读次数:
143
/////////////////////////////////////////////////////////////////////////////////// FileName : cast_item27.cpp// Version : 0.10// Author...
分类:
其他好文 时间:
2014-07-07 18:58:18
阅读次数:
164
Built-in Control Structures 内置控制结构1 if 控制结构scala的if跟java的if结构上相同,功能上也差不太多,scala的说法是,if能够返回一个值 val fileName = if (!args.isEmpty) args(0) else "default....
分类:
其他好文 时间:
2014-07-07 18:33:10
阅读次数:
169
/////////////////////////////////////////////////////////////////////////////////// FileName : effect_item33.h// Version : 0.10// Author...
分类:
其他好文 时间:
2014-07-07 17:46:36
阅读次数:
151
1、打开数据库 先要获取沙盒的数据库文件名,并创建数据库文件名,定数据库: @property (nonatomic, strong) FMDatabase *db; // 0.获得沙盒中的数据库文件名 NSString *filename = [[NSSearchPathForDirecto...
分类:
数据库 时间:
2014-07-02 00:44:21
阅读次数:
310
/// /// 将DT转换为Execl的方法 /// /// 需要导出的DT /// 页面 /// 文件名 public void ToExecl(DataTable dt, Page page, string fileName) { HttpResponse respo...
分类:
其他好文 时间:
2014-07-01 21:57:44
阅读次数:
214
/// /// 获取到过滤字TXT,将其放入到字符串中 /// public static void LoadIllegalchar() { string fileName = AppDomain.CurrentDomain.BaseDirectory.ToString() + "Filter...
分类:
其他好文 时间:
2014-07-01 13:33:40
阅读次数:
137