title: Remove last character from txt file
body: <p>I need to remove last character in text file and set this content. First I have to find location the last character. </p>
  
  <pre><code>$dest= "K:\test.txt"
  
  $count_characters= (Get-Content $dest | Measure-Object -Character).Characters
  </code></pre>
  
  <p>Now I know count of characters - the last one (<code>$count_characters</code>) I must remove and set content. Is it possible?</p>