Dag-Erling Smørgrav wrote:[color=blue]
>
>
mwojcik@newsguy.com (Michael Wojcik) writes:[color=green]
> > "Dag-Erling Smørgrav" <des@des.no> writes:[color=darkred]
> >> Does everything have to be in the FAQ?[/color]
> > And what's *your* problem? "I checked the FAQ" is a perfectly
> > reasonable, indeed polite, remark.[/color]
>
> The FAQ is a FAQ, not a reprint of the standard. It is intended to
> address ambiguous, unclear or difficult parts of the C language. The
> fact that fopen() tries to create the file if it does not already
> exist and the specified mode was "w" or "w+" is neither ambiguous,
> unclear nor difficult, and should be cleary stated in any text which
> describes fopen(), including compiler documentation, OS manual pages,
> K&R2 and other tutorial or reference texts, etc.[/color]
Re-quoting the original statement in question:
[color=blue]
> My reading of the description of fopen() led me to expect that, with
> mode as "w", it would create a file if it did not exist. Checked the
> FAQ and did not see this question addressed. What don't I understand?[/color]
I don't think he's saying "why isn't it in the FAQ", but rather "I did
the right thing and checked the FAQ, but since I didn't find an answer
there I am posting here".
Considering how many questions asked here are answered with "read the
FAQ, section x.y", I would think we should applaud those people who not
only took the time to check the FAQ to see if their question was answered
there, but realize that that's an important enough step that they even
told us they checked. (Just in case it's there but they missed it.)
Not every question is, nor should be, in the FAQ. But that doesn't mean
that you shouldn't look there first, anyway.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody |
www.hvcomputer.com | |
| kenbrody/at\spamcop.net |
www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap@gmail.com>