Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- postTitle=raw_input("Title for this post: ")
- postDesc=raw_input("Description for this post: ")
- postFile=raw_input("Filename: ")
- def addPost(postTitle, postDesc, postFile):
- file=open("c:\inetpub\wwwroot\iisstart.htm","a")
- file.write("""<p>Title: """+postTitle+"""</p>""")
- file.write("""<p>Description: """+postDesc+"""</p>""")
- file.write("""<a href="./reports/"""+postFile+"""">"""+postFile+"""</a>""")
- file.close()
- addPost(postTitle, postDesc, postFile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement