#!/usr/bin/env python3 #title :6-2.py #description :Opdracht 6.2 - Files Lezen #author :Marcel Haazen #email :marcel@haazen.xyz #date :03-10-2019 - 13:28 #version :0.1 #usage :python3 6-2.py #notes : #python_version :3.7.4 #============================================================================== file = open("kaartnummers.txt", "r") for line in file: fields = line.split(",") print(fields[1].rstrip(), "Heeft kaartnummer:", fields[0])