String concatenation

In reply to sra1dreddy:

The right way is to use an array. You cannot dynamically form identifiers from other variables.

logic[31:0] mem[1:100][0:1024];
foreach(mem[I]) begin
    filename = $sformatf("/a/b/c/d/a%0d.hex",i);
    $readmemh(filename,mem[i]);
end