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.

Comments

Popular posts from this blog

BdsDex: failed to load Boot0001 "UEFI BHYVE SATA DISK BHYVE-OABE-20A5-E582" from PciRoot(0x0)/Pci (0x2, 0x0)/Stat(0x0,0xFFFF,0x0) : Not Found

Install Shadowsocks-libev as Client on Debian Linux

FreeBSD安装SCIM中文输入法(csh/tcsh)