A
ALuPin@web.de
Guest
Hi,
I have the following problem:
In a text file "vectors.txt" the following string is declared:
"640"
When reading the text file with a process I have to declare a string
as follows:
p_ReadFile : process
file F : text open read_mode is "vectors.txt";
variable L : line;
variable resu : string (1 to 5);
begin
readline(F, L);
read(L, resu);
end process p_ReadFile;
Now I want the variable "resu" to store different strings, for example
"640", "1600", "10000".
How do I constraint the string array type so that I can read different
string lengths ?
Thank you for your opinion.
Rgds,
Andre
I have the following problem:
In a text file "vectors.txt" the following string is declared:
"640"
When reading the text file with a process I have to declare a string
as follows:
p_ReadFile : process
file F : text open read_mode is "vectors.txt";
variable L : line;
variable resu : string (1 to 5);
begin
readline(F, L);
read(L, resu);
end process p_ReadFile;
Now I want the variable "resu" to store different strings, for example
"640", "1600", "10000".
How do I constraint the string array type so that I can read different
string lengths ?
Thank you for your opinion.
Rgds,
Andre