the red linec() methiodes returnes
Hello candidate,
It's a programming suggestion in the python language or the command entered by the input. The
open()
function returns a file object, which has a
read()
method for reading the content of the file:
Here is an example of such case-
f = open("demofile.txt", "r")
print(f.read())
Moreover, if the file is located in a different location, you will have to specify the file path.
Hope it was informational!!