I’m trying to find a simple way to add a comma “,” to the first line a group of files. The files are created daily and need be edited once created.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Set fso = CreateObject("Scripting.FileSystemObject") For Each file In fso.GetFolder(".").Files If UCase(fso.GetExtensionName(file)) = "TXT" Then With file.OpenAsTextStream txt = Array(.ReadLine, .ReadAll) End With file.OpenAsTextStream(2).Write Join(txt, "," & vbNewLine) End If Next 'fileHow To Ask Questions The Smart Way