I want to print 300 numbers in a txt file. The code is working properly, because the txt file prints also the information of how many numbers it contains and it is correct.
However, it prints 5 first numbers then '...' and then 5 last numbers. What should I do to make the txt file have all the numbers in it one by one, without '...'?
This is the code I used:
df=open('file_name','w')
df.write(str(numbers[indexes]))
df.write('\n')
df.close()
numbers contains 10k numbers and there are 300 indexes.