Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to open a file?

How to open a file?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestionhelplearning
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    hello, im a beginner at using visual c++. ive a simple question to ask. i want to know how to open a *.txt file from a certain directory when i click on a button. for example, when i click on the button [Open Text File] => the example.txt will be open with the notepad etc. post the code here or email me at 993269d@nyp.edu.sg if u know how - thank u for ur help. have a nice day! regards, kserv;)

    A 1 Reply Last reply
    0
    • L Lost User

      hello, im a beginner at using visual c++. ive a simple question to ask. i want to know how to open a *.txt file from a certain directory when i click on a button. for example, when i click on the button [Open Text File] => the example.txt will be open with the notepad etc. post the code here or email me at 993269d@nyp.edu.sg if u know how - thank u for ur help. have a nice day! regards, kserv;)

      A Offline
      A Offline
      Alex Taylor
      wrote on last edited by
      #2

      Look up CFile. Alex

      L 1 Reply Last reply
      0
      • A Alex Taylor

        Look up CFile. Alex

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        i oso know! but cannot leh~ :(

        C 1 Reply Last reply
        0
        • L Lost User

          i oso know! but cannot leh~ :(

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I don't understand - you're saying you know to use CFile but don't know how ? Here is the MSDN online, you can look up the syntax and examples there. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups