May-11-2019, 06:50 AM
(This post was last modified: May-11-2019, 08:30 AM by Gribouillis.)
Replace
sys.stdin.read()
with pathlib.Path('ABC.pdb').read_text()
and replace print(output)
with pathlib.Path('ABC.txt').write_text(output)
. Use the argparse module to get the file names from the command line.Aurimas Wrote:The script I have written belowIn 2019, use python 3.