,
The OS will do this in the background, I would make the file as large as you expect, so the OS will put it in contact. And if you need to grow the file, you will again grow by about 10% each time. This is similar to how the SQL server stores database files.
Open the opening FileStream that you open with the addition.
Example:
FileStream fwriter = new FileStream("C:\\test.txt", FileMode.Append, FileAccess.Write, FileShare.Read);
source
share