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
Post a Comment