hazejean Posted July 24, 2003 Posted July 24, 2003 I have a situation where I have many forms that I run in sequence. I want to put out put from each form to an external text file or WORD file. Antysuggestions? thanks Quote
Administrators PlausiblyDamp Posted July 24, 2003 Administrators Posted July 24, 2003 have a look at System.IO.FileStream and System.IO.StreamWriter as good starting points. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Leaders dynamic_sysop Posted July 25, 2003 Leaders Posted July 25, 2003 here's a quick example of using the IO.StreamWriter : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strText As String = "i'm some text that's going to be in your new .txt file" & Environment.NewLine & "and i'm multilined!" Dim sWriter As IO.StreamWriter = New IO.StreamWriter(New IO.FileStream("D:\a_test.txt", IO.FileMode.OpenOrCreate)) sWriter.Write(strText) sWriter.Close() End Sub Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.