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. iostream.h/fstream.h???

iostream.h/fstream.h???

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++question
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.
  • R Offline
    R Offline
    roadragedave
    wrote on last edited by
    #1

    Why is iostream.h & fstream.h missing from VC++.NET include folders. If I copy the same files from VC6.0 then I get errors in those files. What can I do, where can I get those header files and if not what headers can I use instead of fstream.h We have a mathematician, a different kind of mathematician, and a statistician!

    T P 2 Replies Last reply
    0
    • R roadragedave

      Why is iostream.h & fstream.h missing from VC++.NET include folders. If I copy the same files from VC6.0 then I get errors in those files. What can I do, where can I get those header files and if not what headers can I use instead of fstream.h We have a mathematician, a different kind of mathematician, and a statistician!

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

      try to include instead : #include <iostream> #include <fstream>


      TOXCCT >>> GEII power

      1 Reply Last reply
      0
      • R roadragedave

        Why is iostream.h & fstream.h missing from VC++.NET include folders. If I copy the same files from VC6.0 then I get errors in those files. What can I do, where can I get those header files and if not what headers can I use instead of fstream.h We have a mathematician, a different kind of mathematician, and a statistician!

        P Offline
        P Offline
        Paul Ranson
        wrote on last edited by
        #3

        "iostream.h" and "fstream.h" are not part of C++. Look at "iostream" and "fstream" and then the 'std::' scope.

        #include <iostream>
        #include <iomanip>
        #include <fstream>

        void SomeFuncToReadFile ( const char * sFile )
        {
        std::ifstream in ( s ) ;
        if ( !in )
        {
        std::cerr << "Couldn't open input file : " << s << std::endl ;
        return ;
        }
        in.unsetf(std::ios::skipws) ;

        // do whatever with the file
        }

        Paul

        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