会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
蜡笔小新
博客园
首页
新随笔
联系
管理
订阅
2014年3月7日
获取服务器文件路径(并向TXT写入数据代码)
摘要: string s=Server.MapPath("..\\..\\api\\text.txt"); //由相对路径获取物理路径 FileStream fs = new FileStream(s, FileMode.Create); byte[] data = new UTF8Encoding().GetBytes("notify_url"); fs.Write(data, 0, data.Length); fs.Flush(); fs.Close();
阅读全文
posted @ 2014-03-07 14:49 乡土的味道
阅读(324)
评论(0)
推荐(0)
编辑
公告