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 6924577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:40:50+00:00 2026-05-27T10:40:50+00:00

I am currently working on a text editor that ideally should be able to

  • 0

I am currently working on a text editor that ideally should be able to handle very large files(theoretically 16 eb). I am planning to use memory mapped files for the file management part. I read some interesting examples in the book Windows via C/C++. My questions here are:

  • Is it essential that the file offsets from which I need to map should be on 64k(or whatever the allocation granularity size) boundaries?
  • My second question is that if yes(to the first question), then would it be viable to map 2 64k views in order to keep a continuous flow of text, when I encounter a situation when I require the contents of the file from either sides of the 64k boundary? for example,
    lets say that the user scolls across to a point in the file where I have data represented in (64k – 1) of the file and this point lies in the middle of the screen of my text editor, such that i need to display data that ranges from, let’s say, (64k – x) to (64k + x). So i could make two mappings, 0 – 64k and 64k – 64k(i could form a smaller mapping but then i would require to resize the mapping later in any case, to 64k).

I wasn’t quite sure how to frame the questions, so if you don’t understand what I meant, I’ll keep updating the questions according to the responses I get.

  • 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-27T10:40:50+00:00Added an answer on May 27, 2026 at 10:40 am

    According to the documentation for MapViewOfFile, dwFileOffsetLow is:

    A low-order DWORD of the file offset where the view is to begin. The combination of the high and low offsets must specify an offset within the file mapping. They must also match the memory allocation granularity of the system. That is, the offset must be a multiple of the allocation granularity. To obtain the memory allocation granularity of the system, use the GetSystemInfo function, which fills in the members of a SYSTEM_INFO structure.

    So the answer to your first question is yes.

    The answer to your second question also is yes. You can create multiple views of the same file.

    The article Managing Memory Mapped Files may be of some use to you.

    By the way, if you get your text editor to the point where it can be tested, I’d be quite interested in seeing it. I have long despaired at finding an editor or text file viewer that gracefully handles very large files. See Large Text File Viewers and Designing a better text file viewer for some thoughts.

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

Sidebar

Related Questions

I have recently started using Vim as my text editor and am currently working
I'm currently working on a jQuery script that will translate the site's text into
I'm currently working on a SilverLight text editor for my site control panel, I
I'm currently upgrading a WYSIWYG Rich Text Editor that was based on the DHTML
I am currently working on a project and my goal is to locate text
I'm currently working through some exercises in a c++ book, which uses text based
I need to write Hebrew text in Latex. I am currently working on Windows
Am currently working on an application that requires users to submit posts and comments
I am currently trying to integrate a RIch Text Editor in an application I
I'm currently using Firefox 7.0.1. I've been working on a WYSIWYG editor and just

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.