Article View: csu.unix.linux
Article #114where did it go?
From: Xylen
Date: Fri, 28 Jan 2000 00:00
Date: Fri, 28 Jan 2000 00:00
24 lines
1240 bytes
1240 bytes
I know it is a simple little thing, but I can't find it anywhere.
I want to include lines like :
#include <fstream.h>
fstream myin;
myin.open("data");
myin >> x;
I think I need fstream.h and probally iostream.h, but I can't find them.
I suppose they are part of a shared library somewhere, but I don't know
which one. I have libc.so.6 and I'm guessing they are in there, but
apparantley gcc doesn't recognize them. I keep getting the error "cannot
find fstream". Then again, I could be way off base, and they are
someplace else entirely.
If my code is wrong, just what do I need to open a file, read from it,
and then close it again?
btw, I'm running RedHat6.0 .
Xylen
Technical Details
Message-ID:
<3891AD13.26453051@holly.colostate.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1159f7,40fb624d1c14100a,start X-Google-Attributes: gid1159f7,public From: Xylen <mctupper@holly.colostate.edu> Subject: where did it go? Date: 2000/01/28 Message-ID: <3891AD13.26453051@holly.colostate.edu> X-Deja-AN: 578928755 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 28 Jan 2000 14:52:59 -0700, res099031.halls.colostate.edu Organization: Xylen's Designs MIME-Version: 1.0 Newsgroups: csu.unix.linux