Re: open() and fopen()




Jack wrote:
What is the difference betweeb the two functions? Thanks.

I don't know what answer would help you more than just reading the
descriptions of each function. The general idea is that 'fopen' aims to
be a portable C function to open a file whereas 'open' is a portable
POSIX function to open a file. On most POSIX systems, the C stdio
library (and thus 'fopen') is implemented on top of 'open'.

They just come from two different standards.

DS

.