Relate to comparing the data of two files

In reply to Rajneesh Kumar:

Why do you want to compare data from files. Your scenario is a loop way. Instead of writing your data to files you can use uvm_analysis fifo for both data streams an compare your data on the fly. This way you are saving resources.
If you want to use your files you have to open them and then reading line by line, scanning the format and compairing the scanned data. This is simple Verilog knowledge.