#include #include #include #include //open #include //open #include //open int main () { int i,fd,j=0; fd = open("temp", O_RDONLY, NULL); while (read(fd,&i,sizeof(i))> 0) j+=i; printf("%d\n",j); return 0; }