While writing a file-processing script, I came across the following case where I need
to read info like ENDDOC and PGCount for multiple records that are in the same file.
; Record 1
@C ENDDOC# ATYC-12769314
@C PGCount 20
; Record 2
@C ENDDOC# ATYC-12769317
@C PGCount 3
Can you suggest how should I read the lines with empty string in between?