So my problem is: I am working with Python on a Discord bot (using discord.py). However, I want the bot to read a txt file, choose one line out of it and delete this line after that. This is how far I've come:
list = open(r"C:\Users\Max\Documents\Python\Discord Bots\Test File\Text\text.txt","r+")
readlist = list.readlines()
text = random.choice(readlist)
for readlist in list: <-- I guess there is the problem
readlist = "\n" <-- here too
list.close()