In reply to pawan:
if you have the comment for each line, try this
scan_file = $fscanf(addr_data_file, "%h %h %s\n", addr,data,comment);
In reply to pawan:
if you have the comment for each line, try this
scan_file = $fscanf(addr_data_file, "%h %h %s\n", addr,data,comment);