title: How to delete the first and last lines from a text file in visual basic
body: <p>I've seen posts on deleting the lines from a text file that are specified as a function parameter, but I only need to delete the first and last lines from the file.</p>
  
  <p>I'm still a newbie when it comes to working in files, but it seems that it should be simple to delete the first line... Just delete all text from BOF to the first CrLf character. Am I right?</p>
  
  <p>As for the last line, I understand that I'll have to get a count of the lines in the text file  to find it (as the file won't always be x amount of lines long). This is where I really need some help.</p>
  
  <p>N.B. I'm using VB.NET 2005</p>