With the command next(a_file), I can skip the first line of a file but only if there is actually a line. If there is nothing in the file at the time of the command I get an error. How can I avoid this problem?
Example for error:
a_file = open("helloo.txt")
next(a_file)
print(a_file.read())