|

Software Components Home
Write String to File
Back
Demonstrates how to save a string to a file, overwriting the file if it already exists:
Dim intFileHandle As Integer
Dim myStr As String
myStr = "Hello World"
intFileHandle = FreeFile
Open "myFile.txt" For Output As #intFileHandle
Print #intFileHandle, myStr
Close #intFileHandle
|