targ=input("Enter the Path/Name of the File you wish to encode\t")
print("\n\nEnter the type of Encoding\n")
choice=input("\n1. GIF\n2. JPEG\n3. PNG\t")
read=""
with open(targ,'r') as og:
	data=og.read()
if(choice == '1'):
	data='FFD8FFEo\n' + data
	with open('op_text.gif','w') as output:
		output.write(data)
elif(choice == '2'):
	data='FFD8FFEo\n' + data
	with open('op_text.jpg','w') as output:
		output.write(data)
elif(choice == '3'):
	data='89504E470D0A1A0A'+"\n"+data
	with open('op_text.png','w') as output:
		output.write(data)
else:
	print("Enter a correct choice")
