

|
 |
| Programming > C Moderated > Re: Behavior of... |
|
| << Topic |
< Post |
Post 4 of 10 Topic 1071 of 1126
|
Post > |
Topic >> |
Re: Behavior of fwrite(), fseek(), fflush() if the file gets deleted after being opened.
by =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= <HBBroeker@[EMAIL PROTECTED]
>
Apr 4, 2008 at 10:34 AM
| Aditya wrote:
> The application starts and opens(creates) a file, and waits for an
> input to be written to the file.
> I delete the file using rm -f <filename> as soon as the application
> starts before I give it an input to the application(just to clarify, I
> delete it from a different terminal, without stopping the application
> to wait for an input).
At this point, you've thoroughly left the region of topicality of this
newsgroup. The C programming language doesn't know about multiple
terminals, multiple processes, or other such things.
> Now I give the input and debug through the application, I find that
> the fseek(), fwrite(), fflush() calls in the application for writing
> to the file do not throw error even though the file is not existant.
Your assumption that the file is non-existant is wrong. To find out
why, you'll have to consult platform-specific documentation.
--
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
-- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line. Sorry.


|
10 Posts in Topic:
|
Aditya <adityagupta.18 |
2008-04-01 12:16:56 |
|
gordonb.hzgc0@[EMAIL PROT |
2008-04-04 10:34:02 |
|
Kenneth Brody <kenbrod |
2008-04-04 10:34:07 |
|
=?ISO-8859-1?Q?Hans-Bernh |
2008-04-04 10:34:14 |
|
Mark Bessey <mark_bess |
2008-04-04 10:34:19 |
|
Keith Thompson <kst-u@ |
2008-04-04 10:34:21 |
|
Jack Klein <jackklein@ |
2008-04-04 10:34:29 |
|
Val <Valery_Creux@[EMA |
2008-04-04 10:35:23 |
|
Barry Schwarz <schwarz |
2008-04-04 10:35:06 |
|
Ivan Chernetsky <ivan_ |
2008-04-04 10:35:11 |
|
Post A Reply:

|
|
|
|