Oct 5, 2001, 3:05 PM
Post #1 of 2
This is so easy I'm sure it's laughable, but I'm not sure how to split the lines into an array without ending up with a comma at the last entry. So, while ya'll chuckle - please help!
splitting data lines into array
I have a simple external db (simple.dat) file similar to:
(single fields, no delimeters)
and I want to read that data file's lines and put them into an array so:
# however many lines from simple.dat
@linez = ("line1","line2","line3") ;
Once it's in array, I can do more with it, of course :) What's the simplest way to do that?