This commit is contained in:
deadsmond 2019-12-03 14:13:58 +01:00
parent 5713e5c4ec
commit 0d0e72509e

View File

@ -52,9 +52,9 @@ print(os.listdir(os.path.join(os.curdir,'TaskB04')))
shutil.copy(
sys.argv[1].replace('.arg', '.exp'),
sys.argv[1].replace('.arg', '.txt')
sys.argv[1].replace('.arg', '')
)
with open(sys.argv[1].replace('.arg', '.txt'), 'r') as f:
with open(sys.argv[1].replace('.arg', ''), 'r') as f:
for line in f:
print(line.decode('utf-16', 'ignore'))