Python - Programming Language
This course covers the basics of programming in Python. Work your way through the videos/articles and I'll teach you everything you need to know to start your programming journey!

Reading Files

Lesson 28
Author : 🦒
Last Updated : October, 2017


Code

Copyemployee_file = open("employees.txt", "r")

for employee in employee_file.read_lines():
     print(employee)

employee_file.close()