Code:
码:
int fd;
fd = open("fruit", O_WRONLY);
write(fd, "apple", sizeof("apple"));
close(fd);
int fd;
fd = open("fruit", O_WRONLCode:
码:
int fd;
fd = open("fruit", O_WRONLY);
write(fd, "apple", sizeof("apple"));
close(fd);
int fd;
fd = open("fruit", O_WRONL