You are given the text file, file1.txt whose contents are:
hello everyone
today is a monday
all the best for your exams
What will be the output of the following code?
myfile = open("file1.txt", "r")
str = myfile.readline(20)
print(str)
myfile.close()
1
hello everyone\ntoday
2
hello everyone
today
3
hello everyone
4
none of the above