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. CFile Vs CStdioFile

CFile Vs CStdioFile

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studioquestion
3 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.
  • N Offline
    N Offline
    nisha00000
    wrote on last edited by
    #1

    Hi Whats the difference between CFile and CStdioFile ?Why we are use CFile and CStdioFile? Thanks Nisha

    CPalliniC V 2 Replies Last reply
    0
    • N nisha00000

      Hi Whats the difference between CFile and CStdioFile ?Why we are use CFile and CStdioFile? Thanks Nisha

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Do you feel documentation (CFile [^] & CStdioFile [^]) inadequate on these subjects? Roughly speacking, since CStdioFile inherits from CFile we espect the former augmenting the latter functionalities: a quick look at documentation show us two interesting methods (ReadString and WriteString) provided only by CStdioFile. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • N nisha00000

        Hi Whats the difference between CFile and CStdioFile ?Why we are use CFile and CStdioFile? Thanks Nisha

        V Offline
        V Offline
        Varghese Paul M
        wrote on last edited by
        #3

        CFile deals with any kind of files where CStdioFile deals with TEXT files by default with an implicit convertion of newline character 0x0a into a pair of (0x0d and 0x0a) The two methods, WriteString and ReadString provided in CStdioFile class assumes the delimiters of each line in the file as CRLF and newline. It can also be used for binary files as well, but certain functionality provided by CFile like Duplicate(), LockRange() etc are not supported in CStdioFile.

        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