I have a txt file on my Desktop: test.txt. I want to open that txt file and copy everything to the clipboard.
How do I do it?
I figured how to open file and read lines:
path = 'C:\Users\Username\Desktop\test.txt'
fo = open(path, 'r').readlines()
But I can't figure out how to get that data into the clipboard.