User blog:Boxtropica/The PTC filetype is rather cryptic, isn't it?

I've come down to my last staw with PTCUtilities, and now I plan on utilizing my knowledge of Python to make a simple Linux compatible and open-source alternative. Of course, I don't know the last thing about this filetype. I can't find any documentation, any information, so how the folks at PTCUtilies were able to make heads or tails of anything- so now, I'm wasting my time trying to figure out just how the PTC filetype works.

I've conducted two experiments so far- one program had all CAPS in the code, and the other was 100% lowercase. Each were only 1 line long and had the same amount of characters.

Program 1, as typed into Petit Computer, said: PRINT "HELLO, WORLD!" Program 2, as typed into Petit Computer, said: print "Hello, world!" I then exported both programs onto my SD card, put the card into my computer and opened both PTC files with Gedit, only to find... Well, gibberish.

Both files were read with UTF-8 Character Encoding.

Program 1, in gedit, said:

'''PX010\00\00\00\00\00\00\00HWSU\00\00\00\00\D6�\84M�V\B4\D2\FAC\AB\85\EF\9F%\ADPETC0300RPRG\00\00\00\00\00\00\00\00�\00\00\00PRINT "HELLO, WORLD!" \00\00'''

Program 2, in gedit, said:

'''PX010\00\00\00\00\00\00\00HWSL\00\00\00\00\B2;Jח+�\8E�\A0\FE\A0\EC\FB!`PETC0300RPRG\00\00\00\00\00\00\00\00�\00\00\00PRINT "Hello, world!" \00'''

From that, I can conclude that: I'm certainly an imbicile- I don't know what I'm doing, quite frankly, and if anyone knows anything about the PTC filetype and how it works, please, enlighten me! (My research came up dry- perhaps this is because Petit Computer is primarily focused on the Japanese market... I don't know Japanese, though...)
 * Capitalization affects how Petit Computer manages the file
 * That PRG in the \FE\A0\EC\FB!`PETC0300RPRG\ string tells Petit Computer what type of file the .PTC and what to do with it
 * That the title of the PRG- in the case of Program 2, "HWSL"- is in the string PX010\00\00\00\00\00\00\00HWSL\00\
 * That these files make me feel extremely incompetent