Apr-24-2017, 07:20 AM
Was thinking this:
import sys # Some function you can't change def my_func(): text = "You won't see me." print(text) sys.stdout = open("sample.txt", "w") my_func()