Powered by GeSHi

Source code for 2ascii.ps1

(view source code of 2ascii.ps1 as plain text)

  1. # Convert any text file to ASCII
  2.  
  3. param( [string] $infile = $(throw "Please specify a filename.") )
  4.  
  5. $outfile = "$infile.ascii"
  6.  
  7. get-content -path $infile | out-file $outfile -encoding ascii
  8.