Read an external TEXT files and store info in 2 Separate ARRAYS
I would like to read an external TEXT file from say C:\MYPROG\TEXT.TXT
the text.txt file is a text file that contains name and adress
information. I want to read the data from the text file and store the
information in 2 separate arrays:( ie NAME_ARRAY, ADDRESS_ARRAY).
where NAME_ARRAY, ADDRESS_ARRAY are defined as:
type
name_address_str = string[25];
name_array_t = array[1..30] of name_address_str;
address_array_t = array[1..30] of name_address_str;
var
name_array : name_array_t;
address_array : address_array_t
How is this done?
Regards,
Maurizio Gagno