#include <unistd.h> #include <fcntl.h> int main(void) { int f = open("t", O_WRONLY); write(f, "hello world\n", 12); return 0; }