title: Powershell Script printing garbage to Text file
body: <p>I have written a simple power shell script to take user argument at run time and write it to a text file. When I read this file using my JMeter webdriver API it shows some Garbage Character. I have created a new file just to make sure that it's not JMeter that is reading incorrectly. My final conclusion is that garbage is being printed to the text file by powershell script.</p>
  
  <p>Here is my script.</p>
  
  <pre><code>while($state -ne "GA" -or $state -ne "FL")
  {
  "Enter state"
  
  $state = [Console]::ReadLine()  
  
  if($state -eq "GA" -or $state -eq "FL")
  {
  Clear-Content market.txt
  $state&gt;&gt;'market.txt'
  break;
  }
  else
  {
  "NO such market"
  }
  }
  </code></pre>