Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Jan 2014
    Posts
    30
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Add blank line in text file Powershell

    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)
    ....

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,585
    Thanks
    5
    Thanked 1,059 Times in 928 Posts
    Joe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •