- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadingFiles.py
More file actions
Latest commit
20 lines (14 loc) · 593 Bytes
/
Copy pathReadingFiles.py
File metadata and controls
20 lines (14 loc) · 593 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
company_designations=open("Employees.txt","r")
##Checking if the file is readable or not
print(company_designations.readable()) #Returns true or false
#Reading the complete file
#print(company_designations.read())
#Reading line by line
#print(company_designations.readline())
#print(company_designations.readline())
#Reading the document and converting the line by line data in a list
#company_designations_list = company_designations.readlines()
#print(company_designations_list)
fordesignationincompany_designations.readlines():
print(designation)
company_designations.close()