T
Tricky
Ok, I'll definitively thank this group in my thesis! Your idea seems
to work, but there is still a little problem:
the name are of different length! If i do like this:
-----------------------------------------------
Architecture...
Begin
process
VARIABLE filename : String (23 downto 1);
-----------------------------------------------
it works until it find a filename of lenght different from 23.
I tried to do something like this:
VARIABLE filename : String;
or
VARIABLE filename : String (natural range<>);
but I always get an error message.
Have any suggestion?
Thanks
Dek
I assume you are reading the string from a line? well, a line is
actually a pointer to a string.
So, assuming you just have 1 filename per line, you can do something
like:
readline(namefile, inline);
FILE_OPEN(f, inline.all, READ_MODE);
DEALLOCATE(inline); --drops the pointer
You could do the same if its not just 1 file name per line, but the
parsing would get more complicated. But the method above means you can
have filenames as long as you want.