Hi Sachin.
Try this way...
OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc EQ 0.
* DO 2 TIMES.
DO.
READ DATASET gv_file INTO li_strng.
IF sy-subrc EQ 0.
APPEND li_strng TO it_strng.
ELSE.
EXIT.
ENDIF.
ENDDO.
ENDIF.
Rewardful points if useful.
Regards,
João