Article View: comp.os.msdos.programmer
Article #7906Re: open vs fopen?
From: sherlock
Date: Wed, 07 Feb 1996 09:04
Date: Wed, 07 Feb 1996 09:04
23 lines
1347 bytes
1347 bytes
natewild@mbnet.mb.ca (Nathan T. Wild) wrote: >In C, why would one use open and DOS int handles rather than fopen and >stdio file handles? >Is there some speed advantage or differnet functionality? > >|--------------------------------------------------------------------| >| ooooO (``) (``) Ooooo | Nathan T. Wild | >| ( ) ) ( ) ( ( ) | natewild@mbnet.mb.ca | >| ) ( ( ) ( ) ) ( | ftp://ftp.mbnet.mb.ca/pub/natewild | >| (__) ooooO Ooooo (__) | http://www.mbnet.mb.ca/~natewild | >|--------------------------------------------------------------------| because files opened using open and DOS files handles can be read and write at the same time, while stdio files can't. suppose you have a database file, with fixed length fields. low level functions(open...) enable the writing of some records and the reading of other without closing the file.
Technical Details
Message-ID:
<4f8qbg$549@chleuasme.francenet.fr>Path:
arc1-ca.pugleaf.net!francenet.fr!usenetReferences:
<uEYFxc9nX8WX083yn@mbnet.mb.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!francenet.fr!usenet From: sherlock@micronet.fr Newsgroups: comp.os.msdos.programmer,comp.lang.c Subject: Re: open vs fopen? Date: Wed, 07 Feb 1996 09:04:29 GMT Organization: Francenet -- Paris, France Message-ID: <4f8qbg$549@chleuasme.francenet.fr> References: <uEYFxc9nX8WX083yn@mbnet.mb.ca> NNTP-Posting-Host: ppp41.micronet.fr X-Newsreader: Forte Free Agent 1.0.82