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
@T ATYC-12769295
; Record 2
@C ENDDOC# ATYC-12769317
@C PGCount 3
@T ATYC-12769315
Can you suggest how should I read the lines with empty string in between?
http://www.ravishakya.com