- Aug
- 2,808
- 144
Code:
function Show-AnsiFile {
param(
[Parameter(Mandatory = $true)]
[string]$Path
)
$cp437 = [System.Text.Encoding]::GetEncoding(437)
$text = [System.IO.File]::ReadAllText((Resolve-Path -LiteralPath $Path), $cp437)
[System.Console]::Write($text)
}
Ref: Using TYPE to display an .ANS file
Ref: Display an ANSI file on the TCC screen
Joe