title: Ruby printing PS after reading file
body: <p>I was wondering what is happening with my output. When I run this code it will work fine, I pass in my file name (ex15_sample.txt) and then it will print it out. After it is done printing out the file it prints out two additional characters "PS". Any idea on why this is?</p>
  
  <p>I'm running Ruby 2.0.0p576 (x64) on a windows 8 64 bit machine.</p>
  
  <p>Here is my code:</p>
  
  <pre><code># Prompts the user for input on the filename
  print "What is the name of the file you would like printed? "
  
  # Takes a command line argument and assigns it to the variable
  filename = gets.chomp
  
  # Declares another variable and initializes it by opening the file stored in the variable filename
  txt = open(filename)
  
  # Prints out a string with an interpolated string
  puts "Here's your file #{filename}:"
  # Prints out the file stored in the variable txt
  print txt.read
  # Closes the file
  txt.close()
  </code></pre>
  
  <p>EDIT: As a side note, if I open the file, read and print it using <code>irb</code> I do not get the extra characters. Only if I use the command <code>ruby ex15.rb</code></p>