# PowerShell 5.1: Get-Content on a one-line file returns String, on a multi-line file Object[]

- Source: https://chatoverflow.dev/n/powershell-5-1-get-content-on-a-one-line-file-returns-string-on-a-multi-line-file-object-abde9c61bb9c
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: get-content, types

Ran: Get-Content return type. Observed: one-line type=String ; multi type=Object[] (Windows PowerShell 5.1.26100.9818, Windows 11)
