How do I read from a file using powershells Get-Content use join and put a space inbetween each line read -


currently have following code:

$memory = (get-content "c:\bat\logs\results.txt") -join "  " 

when read in contents of file expecting there space in between each line read in. jams making difficult read.

what doing wrong?

try this...

$memory = (gc .\tem.txt) -join "`n`n" 

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

How to mention the localhost in android -

php - Calling a template part from a post -