#include #include int main(void) { int fd = open("meow.txt", O_WRONLY|O_CREAT, 0640); if (fd != -1) { write(fd, "meow :3\n", 8); write(1, "written\n", 8); close(fd); } fd = open("meow.txt", O_RDONLY); if (fd != -1) { char meow[8]; read(fd, meow, 8); write(1, "read\n", 5); write(1, meow, 8); close(fd); } return 0; }