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

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -