title: .net: Is there a way to read a txt file from bottom to top?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/452902/how-to-read-a-text-file-reversely-with-iterator-in-c">How to read a text file reversely with iterator in C#</a>  </p>
  </blockquote>
  
  
  
  <p>I am wondering if there is a way to read a text file from bottom to top without any performance penalty, the readLine, movenext approach, but reversed, is this sort of thing possible in .net?</p>
  
  <p>To make matters more interesting the text file has around 100 000 lines in it, so I can't cheat with a readall, reverse...</p>
  
  <p>Some more detail: I have a collection of incoming string values that is prefixed with an int ID that can be sorted. Unfortunately I get these IDs in the wrong order. The main issue is the sheer volume of the string values, and no RDBMS in the solution. So I really need a way to store the string values and then reverse the order of the storing during the processing. Text file came to mind because I don't have a better solution at this point in time.</p>
  
  <p>Thanks in advance.</p>