How to read a csv and extract some data

In reply to dave_59:

Hi Dave,
Thanks for your reply. I tried the code, but got error for
str.match(“ANTSTARTF”))
This is not a valid built in method name for this object. [SystemVerilog].
if(str.match(‘ANTSTARTF’))begin

Just one more point here, the string to be matched is not “ANT”. It is “ANTSTARTF”
which is 9 characters. Not sure if $fgets can store it

Thanks,
Anjali