by Anonymous (267 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 4th August 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Writes a string to a file without saving the quotes.
Dim F As Integer, strPath As String
'strPath = (Path To Be Written To)
'Example: "C:\Documents And Settings\(User)\Desktop\Test.txt"
F = FreeFile
Open strPath For Binary Access Write Lock Read As F
Put #F, , Info
Reset
End Sub
Private Sub Form_Load()
Call FileCopy("Test" & vbCrLf & "Test2" & vbCrLf & "Test3")
End Sub