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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:33:01+00:00 2026-06-06T19:33:01+00:00

I am using the windows API in C++ and I want to get the

  • 0

I am using the windows API in C++ and I want to get the content of a specific txt file. I contemplate using the ReadFile function but I don’ t know what I should use in place of HANDLE or, in other words, how I should pass as parameter the name of the txt file. What is the best way generally to get the content of a txt file using windows API.

  • 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-06T19:33:03+00:00Added an answer on June 6, 2026 at 7:33 pm

    First, you must invoke CreateFile (“Creates or opens a file or I/O device“). It returns a handle which you subsequently pass to ReadFile.

    When you are done, don’t forget to call CloseHandle.

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

Sidebar

Related Questions

I am using GetWindowRect from the windows API to get the bounds of a
When creating a child process in C++ using Windows API, one can allow inheritance
I try to create a very simple app using windows API. I've done some
I'm trying to create a duplex named pipe using the windows API CreateNamedPipe to
trying to automate using perl scripts on windows server using MediaWiki::Bot and Mediawiki::API taken
I am trying to query the windows desktop search API using SQL. I have
Can I create a native thread on Windows running MRI, using the CreateThread API
Using Windows So I'm reading from a binary file a list of unsigned int
I own a web server running Windows ( WAMP ). I want to know
I am trying to make a get http request using jquery getJSON function. I

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.