Update: Thanks guys for the help I finally figured it out. I don't know why i didnt use other libraries (brain fart moment) I'll link the working code below. The alternative answers work but dont keep the same lines as they were before.
The working code:
log_file = open("bigfile.txt", "rt")
contents = log_file.read()
words = contents.split(' ') #added space here
log_file.close()
write_file = open("info.txt",'w') # we wipe everything in the file
# slice the file's content
words_to_add = words[-1000:] #like @jpa suggested
for w in words_to_add: # Add the first words
write_file.write(w + " ")
write_file.close()