Writing large data to file

Domain via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 10 18:43:27 PST 2016


I am writing a split-liked tool, and want to write some large 
data (>4GB) to a single file. But this is not possible while 
using std.file.write, at least on windows. And I need dig into 
the source code to find out the reason (Windows API WriteFile 
uses DWORD as the input size). So why not call WriteFile multiple 
times inside write function, or at least return the number of 
bytes has been written, than I can append the left myself.


More information about the Digitalmars-d mailing list