Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Write ANSI strings to a text file line by lineVB.NET Example Source Code to write ANSI strings to a text file line by line Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim sw As New StreamWriter("myText.txt")
' Write ANSI strings to the file line by line...
sw.Write("Hello ")
sw.WriteLine("World!")
' WriteLine writes a CRLF at the end of each line.
sw.WriteLine("This is the 2nd text line!")
' ...
sw.Close()
End Sub
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.