return '\n'.join([ ' ' % (file(directory + f[ : f.rindex('.')] + '.txt').read().rstrip() if os.path.exists(directory + f[ : f.rindex('.')] + '.txt') else "", f) for f in os.listdir(directory) if os.path.isdir(f) == False and (f.endswith('.c') or f.endswith('.f'))])