Public Sub PopulateTextFile() Dim fso As New FileSystemObject Dim oFile As TextStream If (Not fso.FileExists("C:\Test.txt")) Then Set oFile = fso.CreateTextFile("C:\Test.txt", False) End If oFile.WriteLine "Test" oFile.Close Set oFile = Nothing Set fso = Nothing End Sub
Microsoft Scripting Runtime
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)