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. Read file

Read file

Scheduled Pinned Locked Moved C / C++ / MFC
question
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
    see me
    wrote on last edited by
    #1

    Can I read a file which is already opened for writing????:doh: Dream bigger... Do bigger...Expect smaller aji

    N J 2 Replies Last reply
    0
    • S see me

      Can I read a file which is already opened for writing????:doh: Dream bigger... Do bigger...Expect smaller aji

      N Offline
      N Offline
      NiceNaidu fo
      wrote on last edited by
      #2

      If I am not wrong, Unless u close the handle ,u cannot open the same file again. If u want to read and write at the same time use flags like CFile::modeReadWrite Appu.. "If you judge people, you have no time to love them."

      S 1 Reply Last reply
      0
      • N NiceNaidu fo

        If I am not wrong, Unless u close the handle ,u cannot open the same file again. If u want to read and write at the same time use flags like CFile::modeReadWrite Appu.. "If you judge people, you have no time to love them."

        S Offline
        S Offline
        see me
        wrote on last edited by
        #3

        Thats i know. My problem is that this file is opened for write by another application. I have no information about this application. I want to read it from my application. Dream bigger... Do bigger...Expect smaller aji

        N 1 Reply Last reply
        0
        • S see me

          Thats i know. My problem is that this file is opened for write by another application. I have no information about this application. I want to read it from my application. Dream bigger... Do bigger...Expect smaller aji

          N Offline
          N Offline
          NiceNaidu fo
          wrote on last edited by
          #4

          Then to my knowledge,it is not possible to read . Appu.. "If you judge people, you have no time to love them."

          1 Reply Last reply
          0
          • S see me

            Can I read a file which is already opened for writing????:doh: Dream bigger... Do bigger...Expect smaller aji

            J Offline
            J Offline
            Joe Woodbury
            wrote on last edited by
            #5

            It all depends on the share mode used to open the file. If the other application opened the file with READ access and using FILE_SHARE_READ, then you can read the file. Try opening the file with the same and see what happens. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

            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