Comment on Linux file write patterns: So you want to write to a file fastComments−dar891912yThe second code snippet looks wrong,write(out, buf, (r - w)) should be write(out, buf + w, r - w)
Comments
The second code snippet looks wrong,
write(out, buf, (r - w)) should be write(out, buf + w, r - w)