www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/23/21:41:10

From: Brendan Simon <brendan AT rdt DOT monash DOT edu DOT au>
Date: Wed, 24 Jan 1996 09:51:44 +1100
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: no scanf bug

I posted earlier that I was having problems with scanf (fscanf to be precise).

I found my bug.
I was trying to open a file for reading which had previously been opened
for writing.  

You guessed it; I forgot to close the file with fclose();

fscanf works fine for me now.

Ah well

Brendan Simon
brendan AT rdt DOT monash DOT edu DOT au

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019