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

  • SEARCH
  • Home
  • 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 8755187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:48:00+00:00 2026-06-13T13:48:00+00:00

I need to do some operations in the middle of a binary file (change

  • 0

I need to do some operations in the middle of a binary file (change string value, boolean or int32) and leave everything else as it was. How can I quickly skip items I don’t need to work with and get right to what I need without processing every binary object (there are many of them and it’s slow)?

  • 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-06-13T13:48:01+00:00Added an answer on June 13, 2026 at 1:48 pm

    This entirely depends on the structure of your file. Indeed, whether or not you can change a value will depend on the structure of the file – if you need to make a change which would make the file larger or smaller, you’re likely to need to create a new file, as you can’t just insert or delete bytes from the middle of a file.

    If your file has a fixed-length record format, you can skip to the right place by seeking, e.g. using the Stream.Position property. If your file doesn’t have a fixed-length format, you may need to process everything fully. An “in-between” possibility exists where each record is length-prefixed: you wouldn’t need to actually process everything, but you’d still need to read the header for each record, to skip through it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to perform some operations on all folders within a file share which
I need to perform some file operations on WinCE platform. The paths of file
I need to do some registry operations & other system operations for that i
I need to perform some operations on a 2D array of values read from
I have a little problem. I need to do some little operations on quite
I'm making a tool that can do some operations on a transition system and
Need some advice on how to optimize my articles table for read operations. I
I have some operations which are based on TThreads. Now I need to create
I need compute some join operations on my data, on the result of these
I need to do some mathematics operations on sparse matrices. I noticed that using

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.