PowerShell: Get File Content
Print File Content
Get-Content myfile
# print first 50 lines of file Get-Content myfile | select -first 50
# print last 50 lines of file Get-Content myfile | select -last 50
for scripting use, see PowerShell: Read File