by Morten D Carlsson (3 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 30th September 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Delete a file with almost one line of code
' add the following code in to it
' create a textfile in c:\ that you give the name testing.txt
Dim strFile As String
strFile = "c:\testing.txt"
Kill strFile
msgBox "The file " & strFile & " has been deletet",vbInformation,"Del"
' by Morten D Carlsson