This implementation considers that there are at least two lines in the code, which may be 0 and 0.
If the file has only one 0 or none at all then file is not well formatted.
Lets discuss this verbally