|
Dargo Beginner
Joined: 04 Dec 2000 Posts: 16 Location: USA
|
Posted: Thu Jan 29, 2004 12:04 am
Loading string list from file |
I am trying to load a string list variable from a text file. The file has one name on each line. I have tried working with #additem and %grep but cannot get anything to populate the variable. Thanks in advance.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Jan 29, 2004 4:08 am |
%read() would probably be more useful.
|
|
|
|
Dargo Beginner
Joined: 04 Dec 2000 Posts: 16 Location: USA
|
Posted: Sat Jan 31, 2004 7:58 am |
For anyone that is interested, this is what I got to work. I have a file with about 100 line items to load.
#FILE 1 myfile.txt
#LOOP 1,%filesize( 1) {#ADDITEM myvariable {%read( 1, 0)}}
#CLOSE 1 |
|
|
|
|
|