f = open("data.txt","r") text = f.read().upper() print(text) output = open("output.txt", "w") output.write(text)