# Program to demonstrate files and their functions in python .
# To open a file in a particular mode , Here is the command :-
open_file = open("sample.txt", "r")


# To get the name of file , Here is the command :-
print(open_file.name)

# To get the mode of file is be , Here is the command :-
print(open_file.mode)

# To get the status of file is been closed or not in the bool format , Here is the command :-
print(open_file.closed)
