BLOB data: bytes
# Include <fstream>
# Include <iostream>
# Include <stdlib. h>
Using namespace STD;
Void main ()
{
File * PT;
If (Pt = fopen ("D: \ test2.txt", "A +") = NULL)
{
Cout <"erro" <Endl;
}
Char ch;
Int I = 1;
While (CH = fgetc (PT ))! = EOF)
{
If (I % 2 = 0)
{
If (CH = 'C ')
Cout <',';
Else
Cout <ch;
}
I ++;
}
Fclose (PT );
Getchar ();
}
Decryption result
12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
# Include <fstream>
# Include <iostream>
# Include <stdlib. h>
Using namespace STD;
Void main ()
{
File * PT;
If (Pt = fopen ("D: \ test2.txt", "A +") = NULL)
{
Cout <"erro" <Endl;
}
Char ch;
Int I = 1;
Bool broledata = false; // whether it is role data
Bool bblob = false; // whether it is blob
While (CH = fgetc (PT ))! = EOF)
{
If (bblob)
{
If (I % 2 = 0)
{
If (CH = 'C ')
Cout <',';
Else
Cout <ch;
}
}
Else if (broledata)
{
If (Ch! = '\' & Ch! = 'X ')
Cout <ch;
}
If (CH = 'X ')
Bblob = true;
If (CH = ',' | CH = 'X' | CH = '\'')
Continue;
Else if (CH = '(')
Broledata = true;
Else if (CH = ')')
{
Broledata = false;
Bblob = false;
}
If (bblob)
I ++;
If (CH = ';')
I = 1;
}
Fclose (PT );
Getchar ();
}