In reply to ayehia:
No, that is not what I want to see. As I stated already a couple of times, I would like to execute read operation with C-style onliner using $fscanf() as
$fscanf(fd, "%s%*[^\n]", str);
Not with loop construct you proposed.
SystemVerilog agrees * assignment character
$fscanf(fd, "%s%*s", str); // == read two consecutive words but don't assign the second one just the first one (please refer to LRM to see more info on that)
So, I am repeating myself again to ask how this C-style “%s%*[^\n]” syntax should typed in SystemVerilog style if possible? I am not finding any loop construct to overcome this, those constructs are obvious already.