Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a file
Message
From
06/11/2003 18:33:03
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
05/11/2003 17:08:26
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00846838
Message ID:
00847427
Views:
21
>Is there a better way to create a file:
>
>
>   ' Create a file
>   ' expC1 String
>   ' expC2 File
>   Private Function CreateFile(ByVal tcString As String, ByVal tcFile As String)
>      Dim loFile As System.IO.File
>      Dim loWrite As System.IO.StreamWriter
>      loWrite = loFile.CreateText(tcFile)
>      loWrite.WriteLine(tcString)
>      loWrite.Close()
>   End Function
>
You could use a FileStream object instead of a File object + StreamWriter.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform