How would one go about determining file size in such case
There's nothing built-in to the .NET framework. When your file gets bigger, both FileInfo.Length
and System.IO.Stream.Length
will throw an exception. You will have to fall back to calling the Windows API directly (if the Windows API supports this currently).