Call Flush() when using File.OpenWrite().