README.md

December 5, 2022 ยท View on GitHub

Dump_String_To_File

Description

Dumps a string to a file

More Info

strString--string to dump

strFile--file to dump to

Submitted On
ByIan Ippolito (vWorker)
LevelUnknown
User Rating4.2 (161 globes from 38 users)
CompatibilityVB 5.0, VB 6.0
CategoryDebugging and Error Handling
WorldVisual Basic
Archive File

Source Code

Sub Dump_String_To_File (ByVal strString As String, ByVal strFile As String)
  Dim fileFile As Integer
  fileFile = FreeFile
  Open strFile For Output As fileFile
    Write #fileFile, strString
  Close fileFile
  Dim intReturn
  On Error Resume Next
  intReturn = Shell("c:\apps\utility\textpad\txtpad16.exe " & strFile, 1)
  On Error GoTo 0
End Sub