M
Mariusz Sakowski
Can someone translate this code to a C++?
repeat
file.Read(bufor, 1);
for p := 1 to KeyCount do
begin
buf := buf xor Keys[p];
end;
targetFile.Write(bufor, 1);
until file.Size = file.Position;
where file and targetFile are TFileStream's and Keys is array of byte,
with KeyCount elements. Oh, and p is loop control variable, and buf is
byte, that's all I think. Thanks in advance for any help.
repeat
file.Read(bufor, 1);
for p := 1 to KeyCount do
begin
buf := buf xor Keys[p];
end;
targetFile.Write(bufor, 1);
until file.Size = file.Position;
where file and targetFile are TFileStream's and Keys is array of byte,
with KeyCount elements. Oh, and p is loop control variable, and buf is
byte, that's all I think. Thanks in advance for any help.