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