Hi, I tried to compare same file on linux. for this i did while(read(fd1, ptr1, 1) || read(fd2, ptr2, 1)) { .... .... .... }
but in this case only first read works. some one told me compiler is doing optimization then I compiled it with -O0 option but even then its giving same result. Can any one tell me why so . and what option should I give to compile so that I can read both the file in same whilel
Regards Sumit Shrivastava