Hi, Rewrite : > if (fd = (open("/root/data",O_RDONLY,0) < 0)) as if((fd = open("/root/data",O_RDONLY,0)) < 0) By now i think you should have figured out what was the problem with your code. Regards Sumit