Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestion: Preallocated file open
#1
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........
Reply


Messages In This Thread
Suggestion: Preallocated file open - by doppler - 01-09-2023, 01:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Download the file from the internet and extract the .zip file quickbasic 6 684 10-25-2025, 01:39 AM
Last Post: madscijr
  Cautionary tale of open, append, close doppler 3 875 01-16-2025, 10:23 AM
Last Post: doppler
  Mix mode input of a binary open file Question! doppler 5 1,497 11-28-2024, 03:06 PM
Last Post: Petr
  qb64 "OPEN" linux /dev/ devices Parkland 2 802 06-30-2024, 02:52 AM
Last Post: DSMan195276
  suggestion: create a custom puppy linux distro that includes QB64PE out of the box madscijr 13 2,839 02-07-2024, 02:25 PM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)