diff --git a/sio2/SISR/07-python/creatusr/creatusr.py b/sio2/SISR/07-python/creatusr/creatusr.py new file mode 100644 index 0000000..471ba85 --- /dev/null +++ b/sio2/SISR/07-python/creatusr/creatusr.py @@ -0,0 +1,10 @@ +#!/usr/bin/python3 + +try: + fh = open("users.txt", "r") +except: + print("Fichier inconnu") +else: + line = fh.readline() + while line: + diff --git a/sio2/SISR/07-python/creatusr/users.txt b/sio2/SISR/07-python/creatusr/users.txt new file mode 100644 index 0000000..710b2f9 --- /dev/null +++ b/sio2/SISR/07-python/creatusr/users.txt @@ -0,0 +1,3 @@ +adupont:Albert Dupont +jduroy:Jeannette Duroy +mdurand:Marcelle Durand