if (ReadFile (hFile, buff, BYTECOUNT, &dwBytesRead, NULL)){ xor(buff, hash,buff); WriteFile (hAppend, buff, dwBytesRead,&dwBytesWritten, NULL);}