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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:26:10+00:00 2026-06-17T20:26:10+00:00

I want to open and read a file which has not been saved. I

  • 0

I want to open and read a file which has not been saved. I would like to do this in Windows OS with VC++ or by means of a batch file only.

If I open up the file by normal method of fopen or fopen_s, the file is opened in the last saved manner which is not what I want. I want all the data which is present in the file but not yet saved.

I have read something on this in this link. Similar question. But I am unable to follow the scripts. Can someone please convert it into a batch and give it to me?

  • 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-17T20:26:11+00:00Added an answer on June 17, 2026 at 8:26 pm

    I believe you mean read the contents from a window or control.
    Files are made only after data is saved.

    To read contents of a window like the edit control in Notepad, you first have to get a handle to the control. You can do this using FindWindow to first get the handle of the main window and then use it in FindWindowEx to get the handle of the edit control.

    Once you have the handle of the control, you can send it WM_GETTEXT message using SendMessage to read the text it contains.

    Please note that this may not work for all applications. For example, MS-Word uses a rich edit control which had its own methods to fetch text.

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

Sidebar

Related Questions

I want to open file and read it that I pass from console. Like
I want to read a raw file, which has 3 interleaving and has a
What I want open a file if it exists, create it if it not
I'm building a script which will open a saved text file, export the contents
I'm opening an istream for binary read: ifstream file; file.open (this -> fileName.c_str(), ios::binary);
I had this Wordpress installation which was installed in a subfolder (not root). Like
I want to read a dataframe from a fixed width flat file. This is
How can i read content of a file which is not a simple text
I would like to have the ability to load a module that has been
What I want to do is open multiple files and read in the text

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.