#include #include #include #include int main() { int fd; int n; fd = open("stuff", O_WRONLY); lseek(fd, 1000000, SEEK_SET); n = write(fd, "hello\n", 5); printf("just wrote %d bytes to stuff\n", n); close(fd); return (0); }