Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. postTitle=raw_input("Title for this post: ")
  2. postDesc=raw_input("Description for this post: ")
  3. postFile=raw_input("Filename: ")
  4.  
  5. def addPost(postTitle, postDesc, postFile):
  6. file=open("c:\inetpub\wwwroot\iisstart.htm","a")
  7. file.write("""<p>Title: """+postTitle+"""</p>""")
  8. file.write("""<p>Description: """+postDesc+"""</p>""")
  9. file.write("""<a href="./reports/"""+postFile+"""">"""+postFile+"""</a>""")
  10. file.close()
  11.  
  12. addPost(postTitle, postDesc, postFile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement