all groups > visual c libraries > march 2004 >
You're in the

visual c libraries

group:

stream I/O conversion


stream I/O conversion tomaste
3/8/2004 3:46:09 PM
visual c libraries:
Hi there

We are converting our apps from C++ 6.0 to C++.Net 7.1. The compile fails when is sees the statement: #include <fstream.h>. In fact fstream.h is not in the 7.1 directory structure. The documentation says to use <useoldio.h> but it is not in the 7.1 directory structure either

Does 7.1 support stream I/O are not? If it does, which header file should be included? If it doesn't, is there any option other than rewriting the code to use standard file I/O

Thank

Re: stream I/O conversion Sven Carstensen
3/9/2004 6:53:00 PM
Hi tomaste,

[quoted text, click to view]
when is sees the statement: #include <fstream.h>. In fact fstream.h is not
in the 7.1 directory structure. The documentation says to use <useoldio.h>
but it is not in the 7.1 directory structure either.
[quoted text, click to view]
be included? If it doesn't, is there any option other than rewriting the
code to use standard file I/O?

fstream.h was deprecated in 7.0. You must replace your code to use fstream.
There should be documentation in the MSDN how to migrate from fstream.h to
fstream.

HTH,
SvenC

[quoted text, click to view]
with the fstream include: #include <iostream.h> ???

AddThis Social Bookmark Button