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.
17 lines
265 B
17 lines
265 B
namen = []
|
|
|
|
try:
|
|
f = open('namen.txt','r')
|
|
#f = open('namen.txt','r',encoding='utf-8')
|
|
|
|
for line in f:
|
|
namen.append(line)
|
|
# namen.append(line.strip())
|
|
except IOError as x:
|
|
print(f'I/O-Fehler: {x}')
|
|
finally:
|
|
if f != None:
|
|
f.close()
|
|
|
|
|
|
print(namen)
|
|
|