惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
S
Securelist
P
Proofpoint News Feed
D
DataBreaches.Net
Cisco Talos Blog
Cisco Talos Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
Project Zero
Project Zero
A
About on SuperTechFans
罗磊的独立博客
WordPress大学
WordPress大学
月光博客
月光博客
Latest news
Latest news
C
Cyber Attacks, Cyber Crime and Cyber Security
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
W
WeLiveSecurity
Attack and Defense Labs
Attack and Defense Labs
V
Visual Studio Blog
Blog — PlanetScale
Blog — PlanetScale
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Privacy International News Feed
AI
AI
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence
Help Net Security
Help Net Security
T
Tor Project blog
V
Vulnerabilities – Threatpost
C
Cisco Blogs
I
Intezer
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
MyScale Blog
MyScale Blog
雷峰网
雷峰网
MongoDB | Blog
MongoDB | Blog
Forbes - Security
Forbes - Security
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
T
Threat Research - Cisco Blogs
B
Blog RSS Feed
博客园 - 叶小钗
N
News and Events Feed by Topic
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Simon Willison's Weblog
Simon Willison's Weblog
C
CERT Recently Published Vulnerability Notes
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic

博客园 - pcsky(进哥)

查看Windows下引起Oracle CPU占用率高的神器-qslice 解决BlogEngine.Net系统 Inove主题 在IE6下错位的问题 [原创]asp.net 2.0下的自定义树(myTreeView) DataSet2Excel类(仿Golden32) Visual Studio .NET 2003中自己找到的一个小技巧[图] [函数]截取固定长的字符串(双字节的计2位) 在线人数统计 V1.0(Asp.net+ SqlServer) 源码下载 Visual Studio 2005安装后,原来的Asp.net1.1不能执行的解决方法。 多表连接的SQL写法(SqlServer、Oracle) .Net自动生成Html新闻系统V1.0 Beta 下载 偶用花生壳建了个网站,大家可以去看看 Oracle在.Net开发上的一点经验 pcsky(原作) 大家都在看哪些.Net的书啊? 推荐一本好书:《软件工程思想》 SqlServer存储过程编写经验和优化措施 [转载] 网站信息统计的简单实现过程 pcsky(原作) Asp.Net中检查登陆信息,使用全局过程 pcsky(原作) ODP.NET oracle .NET 数据库访问[转载] 第一次安装Oracle9i
ASP.net 写文件的函数(内容,路径,文件名) pcsky(原作)
pcsky(进哥) · 2004-08-16 · via 博客园 - pcsky(进哥)

'写文件的函数(内容,路径,文件名)
Public Sub FileWrite(ByVal Str As StringByVal myPath As StringByVal myFileName As String)
       
Dim path As String = HttpContext.Current.Server.MapPath(myPath)   '路径
       Dim temp As String = path & "" & myFileName                      '路径+文件名

       
' 删除原文件,如果存在
       If File.Exists(temp) Then
           File.Delete(temp)
       
End If

       
' 建立新文件
       Dim fs As FileStream = File.Create(temp)
       
Dim info As Byte() = Encoding.GetEncoding("gb2312").GetBytes(Str)

       
' 把内容添加到文件中
       fs.Write(info, 0, info.Length)
       fs.Close()
       
'Response.Write("<br>文件成功写入!")
End Sub