| delorie.com/archives/browse.cgi | search |
| From: | Tom St Denis <stdenis AT compmore DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: file manipulation.......... |
| Date: | Thu, 11 Jan 2001 13:16:11 GMT |
| Organization: | Deja.com |
| Lines: | 19 |
| Message-ID: | <93kbmk$v0e$1@nnrp1.deja.com> |
| References: | <93ka9n$e0v1 AT imsp212 DOT netvigator DOT com> |
| NNTP-Posting-Host: | 24.156.37.224 |
| X-Article-Creation-Date: | Thu Jan 11 13:16:11 2001 GMT |
| X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.0; Windows 98) Opera 5.01 [en] |
| X-Http-Proxy: | 1.1 x53.deja.com:80 (Squid/1.1.22) for client 24.156.37.224 |
| X-MyDeja-Info: | XMYDJUIDtomstdenis |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
In article <93ka9n$e0v1 AT imsp212 DOT netvigator DOT com>,
"Honey LAN >_^" <honeymak AT yahoo DOT com> wrote:
> em.........i m a C student.........
> when we work with a file,
> e.g. file_ptr = fopen("filename.ext", "w")
> how C compiler deal with the env with permission?
> i mean if i don't have the correct permission of the file, in this example
> "write", can i work with that file?.........i know the value of the file_ptr
> is returned by the OS.......will the OS just ignore this operation? or
> return any error msg?....thank Q....
If the file cannot be opended the C lib should return NULL instead of a valid
file handle.
Tom
Sent via Deja.com
http://www.deja.com/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |