file myfile myfile = fopen("myfile.txt", "r") while not myfile.eof() text t = myfile.readLine() if t = nil ? break print t /while