What is the BEST way to replace text in a File using C# / .NET?
问题 I have a text file that is being written to as part of a very large data extract. The first line of the text file is the number of "accounts" extracted. Because of the nature of this extract, that number is not known until the very end of the process, but the file can be large (a few hundred megs). What is the BEST way in C# / .NET to open a file (in this case a simple text file), and replace the data that is in the first "line" of text? IMPORTANT NOTE : - I do not need to replace a "fixed