• Add blank line in text file Powershell

    Home » Forums » Developers, developers, developers » DevOps Lounge » Add blank line in text file Powershell

    Author
    Topic
    #507560

    Hi,

    How to add a blank line in text file.

    Code:
    $FileLocation = “C:Dues”              #Change to your location!
    $FileFilter = “user5632.txt”            #Change to your filename filter
    
    
    $FileList = Get-ChildItem $FileLocation -Filter $FileFilter 
    
    
    Clear-Host
    
    
    ForEach ($FSpec in $FileList) {
     $a = (get-content $FSpec.FullName)
    ….
    
    
    
    Viewing 0 reply threads
    Author
    Replies
    Viewing 0 reply threads
    Reply To: Add blank line in text file Powershell

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: