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. File Exists

File Exists

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
8 Posts 6 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.
  • R Offline
    R Offline
    rdop
    wrote on last edited by
    #1

    Hi All How can i check file is Exists or not?I am creating a file but before create a file i want to check File name is exists or not.Plz help me

    N H S 3 Replies Last reply
    0
    • R rdop

      Hi All How can i check file is Exists or not?I am creating a file but before create a file i want to check File name is exists or not.Plz help me

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      Use PathFileExists [^] function

      nave [OpenedFileFinder] [My Blog]

      1 Reply Last reply
      0
      • R rdop

        Hi All How can i check file is Exists or not?I am creating a file but before create a file i want to check File name is exists or not.Plz help me

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        You can use of FindFirstFile.

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        K 1 Reply Last reply
        0
        • H Hamid Taebi

          You can use of FindFirstFile.

          Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

          K Offline
          K Offline
          KarstenK
          wrote on last edited by
          #4

          if you find a file you got to close the handle. :-O

          Greetings from Germany

          H 1 Reply Last reply
          0
          • R rdop

            Hi All How can i check file is Exists or not?I am creating a file but before create a file i want to check File name is exists or not.Plz help me

            S Offline
            S Offline
            Sameerkumar Namdeo
            wrote on last edited by
            #5

            _taccess()

            T 1 Reply Last reply
            0
            • K KarstenK

              if you find a file you got to close the handle. :-O

              Greetings from Germany

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              Sure! :laugh:

              Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

              T 1 Reply Last reply
              0
              • H Hamid Taebi

                Sure! :laugh:

                Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                Hamid. wrote:

                Sure!

                hummm :-)

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                Never mind - my own stupidity is the source of every "problem" - Mixture

                cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                1 Reply Last reply
                0
                • S Sameerkumar Namdeo

                  _taccess()

                  T Offline
                  T Offline
                  ThatsAlok
                  wrote on last edited by
                  #8

                  ccpptrain wrote:

                  _taccess()

                  good! but i think, if i use it, it will increase my dependency on C runtime library. though they are fast but more error prone so beware while using it.

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                  Never mind - my own stupidity is the source of every "problem" - Mixture

                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                  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