File saving



I need a basic way to dump some data to a file. I don't know what containers C++ express supports. Does it support CFile, iostream I have tried both of those and it cannot find the Header files. If the problem is with the setup I don't know what I am doing wrong I install C++ express then the SDK then I followed the directions to allow a Windows application but I can use and of the header that I need.

Help please

the program that I am writing is very basic I just need to save the data

Thanks




Answer this question

File saving

  • PaulRay

    The Microsoft Foundation Classes, like CFile, are not supported in the libraries and templates provided with Visual C++ 2005 Express Edition.  The Platform SDK does not provide them either.

    There is support for the standard C input-output libraries and the standard C++ input-output libraries.  The C++ Standard Template Library, including Stream Classes seem to be there although I have not made a comprehensive review of the header files.

    I would think that will get the job done for you.

     - orcmid

    PS: VC++ 2005 uses the ISO Standard names for the header files.  So you would write

    #include <iostream>

    not iostream.h.  Also, namespace STD is used for all Standard Template Library classes.



  • File saving