Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 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>NewData using variable inputs """+postTitle+"""</p>""")
  8. file.write("""<p>Description: """+postDesc+"""</p>""")
  9.  
  10. file.close()
  11.  
  12. addPost(postTitle, postDesc, postFile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement