VB.net - Trevan - 网易博客 ccwen48.blog.163.com

VB.net - Trevan - 网易博客

站名: VB.net - Trevan - 网易博客

网址: http://ccwen48.blog.163.com

目录: 电脑网络 > 手机通信

PR:

Alexa: 0

备案号: 粤B2-20090191

服务器IP: 115.238.126.133   浙江省杭州市 电信

描述: 博客地址变更!,VB.net LOG,软件开发是瓜熟蒂落,不能强迫,我在谷歌管理一个开发团队,三个方法让你成为更好的程序员,如何学会600多种编程语言,贱人就是矫情:当315打假成为一门生意,一个装有

查询: [ 网站综合查询 | PR查询 | Alexa排名 | 同IP网站 ]

详细介绍

显示下一条 | 关闭 温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》 | 关闭 VB.net

Dim varAppPath As String
varAppPath = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "log"
System.IO.Directory.CreateDirectory(varAppPath)
Dim head As String
head = System.DateTime.Now.Hour.ToString() + ":" + System.DateTime.Now.Minute.ToString()
head = head + ":" + System.DateTime.Now.Second.ToString() + ":" + System.DateTime.Now.Millisecond.ToString()
Msg = head + System.Environment.NewLine + Msg + System.Environment.NewLine
Dim strDate As String
strDate = System.DateTime.Now.ToString("yyyyMMdd")
Dim strFile As String
strFile = varAppPath + "\" + strDate + ".log"
Dim SW As System.IO.StreamWriter
SW = New System.IO.StreamWriter(strFile, True)
SW.WriteLine(Msg)
SW.Flush()
SW.Close()
本文由外刊IT评论网(www.aqee.net)原创发表,文章地址:软件开发是瓜熟蒂落,不能强迫,[英文原文:It ships when it ships ]

猜你喜欢