You want to initialize a signal?
1-In verilog, it is easiest with readmem.
2-you could do it with the simulator command (tcl in general)
3-in vhdl you need to develop code to read file like this:
PROCEDURE ReadWord(VARIABLE InLine: INOUT line; VARIABLE s: OUT string;
VARIABLE OK: INOUT boolean) IS
VARIABLE ch : character;
VARIABLE k : integer;
VARIABLE intOK : boolean;
BEGIN
k:=1;
intOK:=OK;
L1: LOOP
read(InLine,ch,intOK);
EXIT L1 WHEN(ch=';' or not(intOK) or not(ch=HT or ch=' ' or ch=':' or ch=','));
END LOOP;
L2: LOOP
EXIT L2 WHEN (ch=HT or ch=' ' or ch=':' or ch=';' or ch=',' or not(intOK));
s(k):=ch;
k:=k+1;
read(InLine,ch,intOK);
END LOOP;
s(k):=NUL;
OK:=OK and k>0;
END ReadWord;