3ae87ba613
wxFFile with fwrite still has a chance of partial writes. wxFFileOutputStream provides WriteAll which will iterate until all bytes written or error.