Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!C:\Python34\python.exe
- import cgi, cgitb, sys
- cgitb.enable()
- print("Content-type: text/html")
- print()
- myfile = open("file.txt","r")
- text = myfile.read()
- newtext = text.replace("\n","<br/>")
- myfile.close()
- print(newtext)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement