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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. can i use ofstream in VS 2005.

can i use ofstream in VS 2005.

Scheduled Pinned Locked Moved C / C++ / MFC
dotnetvisual-studiohelpquestion
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.
  • B Offline
    B Offline
    Banks K
    wrote on last edited by
    #1

    Hello All, actually i have to made a project using VS2005 with CLR support so can anybody tell me how can i use ofstream class in this project. i am also "iostraem" but still it is giving error like "error C2061: syntax error : identifier 'fstream'" please share your knowledge thanks Bankey

    J J 2 Replies Last reply
    0
    • B Banks K

      Hello All, actually i have to made a project using VS2005 with CLR support so can anybody tell me how can i use ofstream class in this project. i am also "iostraem" but still it is giving error like "error C2061: syntax error : identifier 'fstream'" please share your knowledge thanks Bankey

      J Offline
      J Offline
      jhwurmbach
      wrote on last edited by
      #2

      Banks K wrote:

      how can i use ofstream "error C2061: syntax error : identifier 'fstream'"

      a) Did you #include ? b) Are you writing std::fstream OR do you have using namespace std; at the top of the file? c) You seem to want to program a managed C++ program. You should use the .NET classes and ask question in the managed C++ forum.


      Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
      George Orwell, "Keep the Aspidistra Flying", Opening words

      1 Reply Last reply
      0
      • B Banks K

        Hello All, actually i have to made a project using VS2005 with CLR support so can anybody tell me how can i use ofstream class in this project. i am also "iostraem" but still it is giving error like "error C2061: syntax error : identifier 'fstream'" please share your knowledge thanks Bankey

        J Offline
        J Offline
        John R Shaw
        wrote on last edited by
        #3

        Sure you can, but Microsoft is stepping so far out of previous specifications that it is becoming hard to tell where the line is. Unless you are just using ‘ofstream’ for reading, then you have a problem that I can not solve with-out the code.

        INTP "Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

        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