Txt to Raw and Raw to Txt

General discussion about calculators, SwissMicros or otherwise
User avatar
Posts: 49
Joined: Fri Mar 30, 2018 11:36 am
Location: Eswatini

Re: Txt to Raw and Raw to Txt

Post by pica »

You can also use the PC version of free42. It will export/import a program as .raw, and copy/paste from the display as .txt. The .txt will have line numbers that you can strip using an editor like geany.
Have owned HP10C HP32SII.
Currently use HP50G Free42 DM42.
Testing WP43S, C43.
Posts: 26
Joined: Fri Jul 28, 2017 3:36 am

Re: Txt to Raw and Raw to Txt

Post by tgray »

So it's not perfect, but I finally got around to writing an encoder in Python to convert programs to raw files. Maybe I will add decoding to it at some point, though I hope Swiss Micros just enables text import/export of programs directly on the DM42. It is already built into Free42 after all.

I make no guarantees to the quality of the code. I did test it some on programs I've written as well as the 'stress.txt' program on the Free42 website.

Post Reply