import sys
import os
path = os.getcwd() + "/logic/inventory.txt"

# try:
fhand = open(path, "a+")
inum = sys.argv[1]
name = sys.argv[2]
desc = sys.argv[3]
quant = sys.argv[4]

buf = inum +"|"+ name +"|"+ desc +"|"+ quant +"$"

fhand.write(buf)
fhand.close()
message = "record " +sys.argv[5]+ " successfully"
print(message)
sys.stdout.flush()
# except:
#     print("An error occured while adding record")

203a33a2cbe8db2b7cedcbf35e33bb5d876e0cf6
<mask token>

<mask token>
fhand.write(buf)
fhand.close()
<mask token>
print(message)
sys.stdout.flush()

<mask token>
path = os.getcwd() + '/logic/inventory.txt'
fhand = open(path, 'a+')
inum = sys.argv[1]
name = sys.argv[2]
desc = sys.argv[3]
quant = sys.argv[4]
buf = inum + '|' + name + '|' + desc + '|' + quant + '$'
fhand.write(buf)
fhand.close()
message = 'record ' + sys.argv[5] + ' successfully'
print(message)
sys.stdout.flush()

import sys
import os
path = os.getcwd() + '/logic/inventory.txt'
fhand = open(path, 'a+')
inum = sys.argv[1]
name = sys.argv[2]
desc = sys.argv[3]
quant = sys.argv[4]
buf = inum + '|' + name + '|' + desc + '|' + quant + '$'
fhand.write(buf)
fhand.close()
message = 'record ' + sys.argv[5] + ' successfully'
print(message)
sys.stdout.flush()

import sys
import os
path = os.getcwd() + "/logic/inventory.txt"

# try:
fhand = open(path, "a+")
inum = sys.argv[1]
name = sys.argv[2]
desc = sys.argv[3]
quant = sys.argv[4]

buf = inum +"|"+ name +"|"+ desc +"|"+ quant +"$"

fhand.write(buf)
fhand.close()
message = "record " +sys.argv[5]+ " successfully"
print(message)
sys.stdout.flush()
# except:
#     print("An error occured while adding record")
