so could I do this:
while(!%file.isEOF())
%filecontents = %filecontents @ %file.readline() @ "\r\n";
to solve the 0x0A and 0x0D problem?
Could I do something magical like this to try to work around the 0x00 part?
// %l = letter in string
// %str = string, "%file.readline()"
%l = 0;
while(%l !$= "\r")
{
%character = getSubStr(%str, %l, %l+1);
if(%character $= "")
//Do something if the character is 0x00
}
What if I converted it to base64, then DE-CONVERTED it to base64, then compared the resulting objects crc's?
if they aren't the same, then it should assume it stumbled across a 0x00 and can append it or something.
edit:I don't think I was clear, crc comparison would occur DURING the conversion to base64.