SystemVerilog $feof()

In reply to dave_59:

Hello Team,

I would like to know about,
how to skip the line of a file using file operations.
i.e by using $fgets(line,fd), we can get the lines of a file by putting in a while loop.

But my question is, if that line is empty I want next line. How to get the next line ???
I tried to put $fgets(line,fd) again and again, but it is not looking fine.

(I don’t want to use continue statement in while loop. I am comparing two files in a single while loop.)

Please help me out.

Thanks.