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. vs c++

vs c++

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiotutorial
12 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.
  • J jitenderbansal

    how to read and write in file in case of vs 6.0

    T Offline
    T Offline
    toxcct
    wrote on last edited by
    #2

    use STL : std::ifstream and std::ofstream are what you're looking for, in case of C++, fopen(), fread(), fwrite(), fscanf(), fprintf(), fclose() otherwise


    TOXCCT >>> GEII power

    [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

    S 1 Reply Last reply
    0
    • J jitenderbansal

      how to read and write in file in case of vs 6.0

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

      if u r using MFC u can use CFile never say die

      1 Reply Last reply
      0
      • T toxcct

        use STL : std::ifstream and std::ofstream are what you're looking for, in case of C++, fopen(), fread(), fwrite(), fscanf(), fprintf(), fclose() otherwise


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

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

        Hi TOXCCT, I want to create a cpp file template through MFC application. If i specified the class name( TestClass ) the application will automatically create the file TestClass.cpp with some codes like #include TestClass.h . . . TestClass::TestClass() { } . . . someComments...etc. if i want to do the same method or any other method is there????:doh: Dream bigger... Do bigger...Expect smaller aji

        T 1 Reply Last reply
        0
        • S see me

          Hi TOXCCT, I want to create a cpp file template through MFC application. If i specified the class name( TestClass ) the application will automatically create the file TestClass.cpp with some codes like #include TestClass.h . . . TestClass::TestClass() { } . . . someComments...etc. if i want to do the same method or any other method is there????:doh: Dream bigger... Do bigger...Expect smaller aji

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #5

          Its meI want to

          hey, YOU want, of jitenderbansal wants ??? :omg:


          TOXCCT >>> GEII power

          [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

          S 2 Replies Last reply
          0
          • J jitenderbansal

            how to read and write in file in case of vs 6.0

            _ Offline
            _ Offline
            _AnsHUMAN_
            wrote on last edited by
            #6

            fread and fwrite Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

            S 1 Reply Last reply
            0
            • T toxcct

              Its meI want to

              hey, YOU want, of jitenderbansal wants ??? :omg:


              TOXCCT >>> GEII power

              [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

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

              if u kno, then please tel me, whether there is any other way to create cpp files Dream bigger... Do bigger...Expect smaller aji

              T 1 Reply Last reply
              0
              • T toxcct

                Its meI want to

                hey, YOU want, of jitenderbansal wants ??? :omg:


                TOXCCT >>> GEII power

                [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

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

                yes...i also need it Dream bigger... Do bigger...Expect smaller aji

                1 Reply Last reply
                0
                • S see me

                  if u kno, then please tel me, whether there is any other way to create cpp files Dream bigger... Do bigger...Expect smaller aji

                  T Offline
                  T Offline
                  toxcct
                  wrote on last edited by
                  #9

                  Its meif u kno, then please tel me,

                  i won't, as far as i don't understand your request...


                  TOXCCT >>> GEII power

                  [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                  S 1 Reply Last reply
                  0
                  • _ _AnsHUMAN_

                    fread and fwrite Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

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

                    hey, this is already told by toxcct in better way....then y u reapeating the same one???? X| If have any other idea then please tel it Dream bigger... Do bigger...Expect smaller aji

                    1 Reply Last reply
                    0
                    • T toxcct

                      Its meif u kno, then please tel me,

                      i won't, as far as i don't understand your request...


                      TOXCCT >>> GEII power

                      [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

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

                      No problem.... i will use the CFile to create it. Dream bigger... Do bigger...Expect smaller aji

                      1 Reply Last reply
                      0
                      • J jitenderbansal

                        how to read and write in file in case of vs 6.0

                        stefanmihaimogaS Offline
                        stefanmihaimogaS Offline
                        stefanmihaimoga
                        wrote on last edited by
                        #12

                        You could use standard CFile/CStdioFile classes to read/write from/to files. Here's a good example - Johan Rosengren's CTextFile: A handy helper[^]

                        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