if application server file contains only one record(there is no space ) .but when i written following logic it show 2 records in ITAB. one is with record and another one is empty record.i dont know why its shows 2 records .when i degub i find out that it read twice first with application server record and agian with empty record.i tried with application server contians 2 or 5 or 10 records .but it shows lot of empty records in itab.is there any wroung in my logic .please needful help regard this as early as.
open dataset filename for input in text mode default.
while sy-subrc = 0.
clear itab .
read dataset filename into itab.