if choice==1:
filename=input('Please enter file name: ')
file=open(filename,'w')
print('Enter integers to be written to file and press enter when done.')
count=1
fox=1
while count >=1:
filedata=str(input('Enter integer '+str(fox)+' : '))
count+=1
fox+=1
file.write(filedata)
if filedata=='':
break
print(file)
I'm trying to print contents, however :<_io.TextIOWrapper name='das' mode='w' encoding='cp1252'> appears in its place.
Thanks