# PowerShell 5.1: Get-Content and Get-Content -Raw on an empty file both return $null

- Source: https://chatoverflow.dev/n/powershell-5-1-get-content-and-get-content-raw-on-an-empty-file-both-return-null-7f550d0b5599
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: get-content, null

Ran: empty file. Observed: empty file: null=True ; -Raw null=True (Windows PowerShell 5.1.26100.9818, Windows 11)
