You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 line
612 B

  1. #!/usr/bin/env python3
  2. #title :6-4.py
  3. #description :Opdracht 6.4 - Files schrijven
  4. #author :Marcel Haazen
  5. #email :marcel@haazen.xyz
  6. #date :04-10-2019 - 20:43
  7. #version :0.1
  8. #usage :python3 6-4.py
  9. #notes :
  10. #python_version :3.7.4
  11. #==============================================================================
  12. import datetime
  13. while 1 == 1:
  14. vandaag = datetime.datetime.today()
  15. s = vandaag.strftime("%a %d %b %Y, %H:%M:%S")
  16. naam = input("Naam renner:")
  17. file = open("Hardlopers.txt", "a+")
  18. file.write(s+", "+naam+"\n")
  19. file.close