Original Post
Hello again,
There''s a WinAPI function that resizes an open file - I don''t have the docs on this computer but I think it''s SetEndOfFile or something...
Anyway I was wondering is it okay to resize a file frequently by small amounts, or should I resize it in blocks? If so what''s the best amount to resize by? 256 bytes? 1024?
I often have to write an unknown amount of data to files, so I''d like my file class to extend the file automatically when needed. Obviously resizing the file all the time is the lazy solution but I guess if it''s okay and it''s fast enough I''ll do that.