mirror of
https://github.com/forth-ev/VolksForth.git
synced 2024-12-01 03:50:44 +00:00
16 lines
310 B
Python
16 lines
310 B
Python
|
#!/usr/bin/python3
|
||
|
|
||
|
import sys
|
||
|
|
||
|
inFileName, outFileName = sys.argv[1], sys.argv[2]
|
||
|
inFile = open(inFileName, "rb")
|
||
|
source = inFile.read()
|
||
|
destination = bytearray()
|
||
|
for b in source:
|
||
|
if b == 26:
|
||
|
break
|
||
|
destination.append(b)
|
||
|
# result.append('')
|
||
|
outFile = open(outFileName, "wb")
|
||
|
outFile.write(destination)
|