filePath = "input.txt"buffer = "Readline buffer:\n"inList = open(filePath, 'rU').readlines()print inListfor line in inList: buffer += lineprint buffer