01-09-2023, 01:01 AM
Windows can do it and I think Linux can too.
On a file open "preallocate" space to be used. AKA: no fragmentation is possible.
A command to open would look like: open "foo.txt" for output as #1 size=4096 <-- This would preallocate a file 4096k in size.
Of course this would not work for appending. I only suggest this because a lot of huge files I write out become fragmented.
Just a thought.......
It could get very messy........
On a file open "preallocate" space to be used. AKA: no fragmentation is possible.
A command to open would look like: open "foo.txt" for output as #1 size=4096 <-- This would preallocate a file 4096k in size.
Of course this would not work for appending. I only suggest this because a lot of huge files I write out become fragmented.
Just a thought.......
It could get very messy........