Public Sub WriteTextToFile(ByVal Filename As String, ByVal Text As String)
' Writes the passed Text into the specified file
' Create file and StreamWriter object
Dim MyWriter As System.IO.StreamWriter = _
System.IO.File.CreateText(Filename)
' Write text to the stream
MyWriter.Write(Text)
' Close the stream
MyWriter.Close()
End Sub
' Writes the passed Text into the specified file
' Create file and StreamWriter object
Dim MyWriter As System.IO.StreamWriter = _
System.IO.File.CreateText(Filename)
' Write text to the stream
MyWriter.Write(Text)
' Close the stream
MyWriter.Close()
End Sub
تعليقات
إرسال تعليق