[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

strstream.h & strfile.h in UNIX

I am porting programs that uses strstream.h and strfile.h in the unix environment. However, they are not available in VC++. Need help to know where I can find replacements for these header files. Thanks!
0
hott
Asked:
hott
  • 2
  • 2
1 Solution
 
jkrCommented:
strstream.h is available as 'strstrea.h' (8.3!)
0
 
nietodCommented:
Also there is a strstream file (no .h)   There is no strfile.h.  I don't think that is part of the standard library.  What does it contain?
0
 
jkrCommented:
After taking a look into 'strfile.h', i think th VC++ equivalent is 'io.h' - the functionality is almost identical, my version of this file is a part of 'libio.h'...
0
 
DOMINIC011899Commented:
Use the header with no 'h' and put the 'using' directive as in:

#include <STRSTREAM>
using namespace std;

...
   ostrstream osMsg;
   osMsg << "This is it." << ends;
   cout << osMsg.str() << endl;
   osMsg.rdbuf()->freeze( 0 );
0
 
nietodCommented:
I had already suggested that....
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now