Writes the entire file from a single string, CrLF s already included
Public Sub WriteProto(strFilename As String, _
strOut As String)
Dim lngFile As Long
Dim strResponse As String
Dim strWhile As String
lngFile = FreeFile()
strWhile = "Opening"
On Error Resume Next
Open strFilename For Output As lngFile
strResponse = Err.Description
On Error GoTo 0
If Len(strResponse) = 0 Then
strWhile = "Writing"
On Error Resume Next
Print #lngFile, strOut; ' No Crlf added at end
On Error GoTo 0
End If
On Error Resume Next
Close lngFile
On Error GoTo 0
If Len(strResponse) > 0 Then
Err.Raise vbObjectError + 513, , strResponse
End If
End Sub
Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript