Tag: Get-Content

#PSTip Reading file content as a byte array

Note: This tip requires PowerShell 2.0 or above. A few days ago I had to write a script to upload…

Read More

#PSTip Get the contents of a file in one string

Note: This tip requires PowerShell 3.0 or above. The Get-Content cmdlet returns the contents of a file as an array…

Read More

#PSTip Getting the content of an object

Getting the content of an object is usually done with the Get-Content cmdlet. For example, getting the content of the…

Read More