def lire_ligne(pfile):
    """Reads the next line from pfile, skipping commentary lines and white lines."""
    
    while True:
        
        ligne = pfile.readline()
        
        if ligne.isspace():
            continue
        
        if ligne[0] == "#":
            continue
        
        return ligne