In reply to ayehia:
No,
%s is definitely NOT sufficient in my case.
I have text file including a random amount of columns up to ten pieces. Those columns are separated with white space characters (blanks or tabs). Inside my scoreboard, I am only interested about the first column (i.e. first word) of the line. Text file is for example as follows:
sss sss sss sss ssss
That’s why I wanna just use syntax I typed in my first post to this thread. I want also sideline $sscanf() function as it adds redundancy since $fgets() need to called before $sscanf() to get line as string input for the scan function. So, please give info if you know how “%s%*[^\n]” syntax should be interpreted in SV. I think $fscanf() is imported mostly from C language’s fscanf, so why that syntax is tackled?
-Vaino