I have a script that outputs hundreds of individual files. The files are text, but have the extensions:
.Result
.log
.Examples
I want to create a routine that imports all of the .Result files in a folder into a table in the database.
I know how to with Excel, but not text files. I suppose I could just use Excel.Application to open each file maybe? But is that the best way?
The text file contents look like:
And I am going to dump into a table like:
So two questions:
1) Text only or Excel opening text
2) If text only, where is a good reference for importing automatically?
Thanks. Sean.
.Result
.log
.Examples
I want to create a routine that imports all of the .Result files in a folder into a table in the database.
I know how to with Excel, but not text files. I suppose I could just use Excel.Application to open each file maybe? But is that the best way?
The text file contents look like:
Code:
PDI Number: GEN000020
Finding Category: CAT II
Reference: UNIX STIG: 2.5.1.1
Description: The UNIX host is bootable in single user mode without a password.
Status: Open
For example:
GEN000020: sulogin is not in /etc/inittab.
And I am going to dump into a table like:
Code:
STIGID Category Reference Description Status Comments
GEN000020 CAT II UNIX STIG The UNIX host Open sulogin is
bootable not in
/etc/inittab
So two questions:
1) Text only or Excel opening text
2) If text only, where is a good reference for importing automatically?
Thanks. Sean.