By using the below Python 3 code snippet, you can easily skip the first line of a text file.
code.py
a_file = open("example_file.txt")
next(a_file)
for line in a_file:
print(line.rstrip())
By using the below Python 3 code snippet, you can easily skip the first line of a text file.
a_file = open("example_file.txt")
next(a_file)
for line in a_file:
print(line.rstrip())