This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| # Read the second command line argument as the file name | |
| read_file = open(sys.argv[1], 'r') | |
| # Read the third command line argument as the output file name | |
| write_file = open(sys.argv[2], 'w') | |
| temp = '' | |
| flag = 0 |