handle = open(filename,'r+t') # r=read t=textdatei line = handle.readline().strip() # löscht zahl = toFloat(line) handle.close()