Posts

Showing posts with the label fopen

fopen vs open in C

1. fopen is defined in the C standard library , but open is not. Therefore fopen is more portable than open. 2. fopen provides you with buffering IO that may turn out to be a lot faster than what you're doing with open.