| |
token
Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
|
Sure! Modify the src variable to reflect the actual file name. ============================================================================== Option Explicit Dim src, fso, ts, temp, tempFile, output src = "C:\temp\temp.txt" Set fso = CreateObject("Scripting.FileSystemObject") tempFile = fso.BuildPath(fso.GetParentFolderName(src),fso.GetTempName) Set output = fso.CreateTextFile(tempFile) Set ts = fso.OpenTextFile(src) Do Until ts.AtEndOfStream temp = ts.ReadLine temp = "(" & temp & ")" output.WriteLine temp Loop ts.Close output.Close fso.DeleteFile src fso.MoveFile tempFile, src
|
|