Skip to content

Commit 26074d7

Browse files
Add files via upload
1 parent 627bdcf commit 26074d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

filehandling.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# program to open ,read and close the file
2+
3+
name = input("enter the file name :") # taking address
4+
f = open(name) # opening the file
5+
a= f.read()
6+
print(a) # reading the file
7+
f.close() # closing the file

0 commit comments

Comments
 (0)