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