I need to know how to write some code to open 300 fixed width txt files and extract some lines out of each file to be imported into a database. The database has been created. I need to automate the opening of the text file, the extraction and the importing on all three hundred files. Here is a sample of one file. Each file has 15 pens and all 15 have the following info....
BEGIN_COLOR = 3
PEN_NUMBER = 3
HW_LINETYPE = 0
PEN_SPEED = 1
PEN_WEIGHT = 0.004000
END_COLOR
I need the file name, Pen_number and Pen_Width as my fields.
BEGIN_COLOR = 3
PEN_NUMBER = 3
HW_LINETYPE = 0
PEN_SPEED = 1
PEN_WEIGHT = 0.004000
END_COLOR
I need the file name, Pen_number and Pen_Width as my fields.