[asp.net]常用的基本的写入文字档(write,streamWrite,create,creat,File,Create,CreateText)

摘要:[asp.net]常用的基本的写入文字档



Try
            'File.CreateText写入的文件格式已经是utf-8            
            Dim sr As StreamWriter = File.CreateText(strFileName)
            sr.WriteLine("deliver=" & strDeliver)
            sr.WriteLine("receiver=" & strReceiver)

            sr.Close()

            bolSuccess = True
        Catch ex As Exception
         
        End Try

常常搭配Server.mappath