Python
File
io

Pythonでファイルから一行ずつ読み込み

More than 1 year has passed since last update.
f = open('filename')

line = f.readline()

while line:
    line = f.readline()

f.close()