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(6)
str = myfile.readline()
str = myfile.readline(8)
print(str)
myfile.close()
1
today is
2
hello
3
hello ev
4
hello everyone