Possible Duplicate:
C fopen vs open
What is the difference between open() and fopen() in C language?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One is part of the standard c library (
fopen) so you can expect it to be present on all hosted c compiler setups. This function returns aFILE*which can be operated on by the functions in<stdio.h>.The other (
open) is a system call/function not specified by the c standard (however, i believe it is part of the POSIX standard) and therefore only guaranteed to exist on select platforms which claim to support it. This returns anintwhich represents a file, this can be operated on usingread/writeand other similar functions.