delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | kevin.dickerson[atnospam]@ntlworld.com (Kevin Dickerson) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: File bad() problem - bug in djgpp or is it me??? |
Message-ID: | <3c489ba3.6376026@news.ntlworld.com> |
References: | <3c47248f DOT 7781706 AT news DOT ntlworld DOT com> <Xns9199ABC611E1AASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <3c474cca DOT 18082698 AT news DOT ntlworld DOT com> <Xns9199DEB406DE3ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <3c4891c6 DOT 3850646 AT news DOT ntlworld DOT com> |
X-Newsreader: | Forte Free Agent 1.21/32.243 |
Lines: | 23 |
Date: | Fri, 18 Jan 2002 22:09:21 GMT |
NNTP-Posting-Host: | 213.107.233.0 |
X-Complaints-To: | abuse AT ntlworld DOT com |
X-Trace: | news11-gui.server.ntli.net 1011391688 213.107.233.0 (Fri, 18 Jan 2002 22:08:08 GMT) |
NNTP-Posting-Date: | Fri, 18 Jan 2002 22:08:08 GMT |
Organization: | ntlworld News Service |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Fri, 18 Jan 2002 21:22:27 GMT, kevin.dickerson[atnospam]@ntlworld.com (Kevin Dickerson) wrote: >On 18 Jan 2002 02:53:35 GMT, "A. Sinan Unur" <asu1 AT cornell DOT edu> wrote: > >>does it work is you replace bad() with is_open()? > >Tried that, and it still isn't playing ball, might try and d/l an >earlier version of gcc and see if that works, then if it does put a >fault in. I know its bad to reply to your own post, however I found the solution after a bit more searching. http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#4_4 At the end of the day it looks like its not meant to do it, I can use "if(open_file==NULL)" to find out if the file doesn't exist, but I also had the problem of not being able to open a new file, but by adding "open_file.clear();" after the "open_file.close();" is the solution. Thanks for your help and advice.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |