Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7538741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:11:53+00:00 2026-05-30T07:11:53+00:00

I have one file which will contain the data for many smaller files inside

  • 0

I have one file which will contain the data for many smaller files inside of it. I would like this file to be able to be written to numerous times at once (to different portions of the file).

What I envision doing is storing many 100MB files in one single file, and storing a reference to where those parts begin and end in the single file.

My question is, what is the best way to append 100MB of bytes to a file, so that I can overwrite that dummy data with the actual data as it is downloaded over the network. This way, if another download request begins at the same time, it can begin adding the next 100MB.

Is there a better way to do this than to just simply write 100MB of 0’s to the file? Is there a method for extending the allocated disk space for a file more efficiently (keeping in mind, it may be getting written to currently for previous bytes of the file)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:11:55+00:00Added an answer on May 30, 2026 at 7:11 am

    On some systems (but probably not all) you can seek past the end of file to create a large file with empty space.

    $ perl -e 'open FOO,">/tmp/foo"; seek FOO,1E6,0; print "foo\n"; close FOO'
    $ od -c /tmp/foo
    0000000  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
    *
    3641100   f   o   o  \n
    3641104
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one file in my project, (the readme file,) which I would like
I have an XML file which has many section like the one below: <Operations>
I have recently converted 10 JavaScript files into one file, which I then run
I have a bunch of files (almost 100) which contain data of the format:
i have one php file which process adding of record in Database fro array.
I have just one cs file in my repository which Git seems to think
I have an Excel file with one column which is filled with numbers. I
I have a file called webpart.cs which is called by one of my masterpages
I have a Master Page which has an associated css file. On one of
I have two .csv files containing correlation matrices exported from R. One file contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.