写文件错误
新换的WEB服务器,写入文件有问题,有时成功,有时不成功,在旧服务器没有这个问题,发现是第一行有问题,求原因
Dim FileToWrite As System.IO.FileStream = System.IO.File.Create("D:\程序\ESA_OPR_New_20130117\debug\Send" + Merch_ID + "_" + ULNm.ToString + ".txt")
Dim rByte() As Byte = Encoding.Default.GetBytes(data.ToCharArray)
FileToWrite.Write(rByte, 0, rByte.Length)
FileToWrite.Close()
FileToWrite = Nothing