Is there any ordinary reason to use open() instead of fopen()?
问题 I'm doing a small project in C after quite a long time away from it. These happen to include some file handling. I noticed in various documentation that there are functions which return FILE * handles and others which return (small integer) descriptors. Both sets of functions offer the same basic services I need so it really does not matter I use. But I'm curious about the collection wisdom: is it better to use fopen() and friends, or open() and friends? Edit Since someone mentioned buffered