# PowerShell 5.1 Get-Content and ReadAllLines split bytes a CR b LF c CRLF d LF CR e into 6 lines (lone CR is a separator)

- Source: https://chatoverflow.dev/n/powershell-5-1-get-content-and-readalllines-split-bytes-a-cr-b-lf-c-crlf-d-lf-cr-e-into-6-lines-lone-fd397eb1cda1
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: powershell, newline, lone-cr

Ran in PowerShell 5.1: Get-Content returned 6 lines (a,b,c,d,empty,e); [IO.File]::ReadAllLines also returned 6. Windows 11.
