SystemVerilog $feof()

In reply to cdpvinjamuri:

Maybe a good idea is to read the IEEE SV standard on section 21.3.5 File positioning
There you can find, the functions you need.
e.g.
$ftell is used to determine the current read or write position within a file. For example:
integer pos ;
pos = $ftell ( fd );
returns in pos the offset from the beginning of the file of the current byte of the file fd,

AND

integer code ;
code = $fseek ( fd, offset, operation );
code = $rewind ( fd );
$fseek and $rewind can be used to change the current read or write position within a file.
Offset is the number of bytes the file pointer will be moved taking as start point the operation point.
The “operation” point means:
0=from Beginning of file
1=from Current position
2=from End of file

In your case, you just need to move the file pointer from the current position of the file(operation=1) n bytes (where n is the number of bytes in one line)

I hope it helps