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. size of file

size of file

Scheduled Pinned Locked Moved C / C++ / MFC
5 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.
  • S Offline
    S Offline
    smarty12
    wrote on last edited by
    #1

    hello friends plz tell me the function to get size of file using filename.

    D 1 Reply Last reply
    0
    • S smarty12

      hello friends plz tell me the function to get size of file using filename.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      How about GetFileSize()?


      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      S 1 Reply Last reply
      0
      • D David Crow

        How about GetFileSize()?


        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        S Offline
        S Offline
        smarty12
        wrote on last edited by
        #3

        but in this i have to pass handle of file, i want to use name of file to get size. or i can use handle of file if i get to know handle of file(is there any function from which i get handle of file) bye

        A D 2 Replies Last reply
        0
        • S smarty12

          but in this i have to pass handle of file, i want to use name of file to get size. or i can use handle of file if i get to know handle of file(is there any function from which i get handle of file) bye

          A Offline
          A Offline
          Alexander M
          wrote on last edited by
          #4

          You can use the FindFirstFile API to get this info! Don't try it, just do it! ;-)

          1 Reply Last reply
          0
          • S smarty12

            but in this i have to pass handle of file, i want to use name of file to get size. or i can use handle of file if i get to know handle of file(is there any function from which i get handle of file) bye

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            smarty12 wrote: is there any function from which i get handle of file Yes, CreateFile().


            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            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