VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



DumpStringToFile

by Ian Ippolito (vWorker) (14 Submissions)
Category: Debugging and Error Handling
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (38 Votes)

Dumps a string to a file

Inputs
strString--string to dump strFile--file to dump to

Rate DumpStringToFile

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

Download this snippet    Add to My Saved Code

DumpStringToFile Comments

No comments have been posted about DumpStringToFile. Why not be the first to post a comment about DumpStringToFile.

Post your comment

Subject:
Message:
0/1000 characters