This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: rewind a file
- From: Sebastian Huber <sebastian-huber at web dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 1 Oct 2002 19:58:12 -0700
- Subject: Re: rewind a file
- References: <3D99D2B9.7090603@umontreal.ca>
Hello,
I'm not absolutely sure about that, but I guess that 'ios' is not standard
conform. You should try 'ios_base'.
On Tuesday 01 October 2002 09:52, Philippe Despres wrote:
> Hello,
>
> I used to rewind a ifstream file with
>
> file.seekg(0,ios::beg);
> file.clear();
>
> to read it a second time. It was under gcc 2.9x. Now I upgrade to
> mandrake 9.0, which ships gcc 3.2 and it is not working anymore... any
> hint?
>
> Thanks
>
> Philippe