منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : الكتابة الى ملف نصي
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
كاتب الموضوع : جهاد العريقي

اجراء للكتابة الى ملف نصي


كود :
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