How do I replace a line in a txt file with console in c++?
<p>I want to make a high score for a win32 console game. The high score text file will have 10 lines in it for the 10 best people ever played. I've been using examples from <a href="http://www.cplusplus.com/doc/tutorial/files/" rel="nofollow">http://www.cplusplus.com/doc/tutorial/files/</a>. If you scroll down to text files I've been using those 2 examples together in one project.</p>

<p>Also, Is it possible to make it so that the application will automatically  read the file to see if the score is in the top 10? And automatically sort the top ten out from top to bottom from highest to lowest? </p>

<p>i'm using visual c++ express 2010</p>
