(Free42) txt2raw - raw2txt
|
05-23-2022, 03:15 PM
Post: #3
|
|||
|
|||
RE: (Free42) txt2raw - raw2txt
This 3rd program may look a bit silly first, but it can be used to pretty print your program.
txt2txt.cc Code: #include <string.h> Don't forget to add this to the Makefile: Code: ifeq ($(EXE), txt2txt) And then as before compile it with: make EXE=txt2txt Example Let's start with your original file: tmsht.txt Code: 00 { 52-Byte Prgm } Now run: ./txt2txt tmsht.txt We end up with: Code: 00 { 48-Byte Prgm } We notice that "DAY START" has been shortened to 7 characters: "DAY STA". Warning: Make a backup of the file (e.g. add it to Git) before running this program. Text that can not be parsed correctly will be removed. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(Free42) txt2raw - raw2txt - Thomas Klemm - 05-22-2022, 12:27 PM
RE: (Free42) txt2raw - raw2txt - syzygetic - 05-23-2022, 01:34 PM
RE: (Free42) txt2raw - raw2txt - Thomas Klemm - 05-23-2022 03:15 PM
|
User(s) browsing this thread: 1 Guest(s)