The file PartData.txt is a classical csv file: A header line with the names of the fields (or columns) followed by several data lines that use comma to separate the content of each line into several fields.
This kind of file can be easily used as a file based database with the help of Base. You will need to create a Base .odb file that makes your PartData.csv file available to all OpenOffice Applications.
- Find an empty directory and copy the PartData.txt file in this directory. If you change the extension from .txt to .csv the following steps will be a bit easier, because you can work with the defaults. Do this with your favorite file manager (Windows Explorer, Norton Commander, cmd.exe, etc.). You don't need OpenOffice at this point.
- Now start Openoffice and choose the database wizard. On the first page select the last option "Connect to an existing database", but instead of the pre-selected JDBC you go down and select "Text", click [Next] and you will see the dialog shown below.
- In Path to text files you have to specify the directory where your file (many files) live. I repeat what's needed here is the directory, not the full pathname of the csv file itself!
- As I have chosen the second Option "Comma separated value" files, the comma was preselected as the field separator in the final section "Row Format". I have changed the text separator (which is a wrong name, because what's needed here is the text delimiter) from the double quotes to None, simply because your data file doesn't use text delimited by quotes.
- A click on [Next] brings you to the final screen which you can simply leave as it is.
- Click on finish and you will be asked for a filename. This will be a .odb Base file with all that configuration that you have just specified in the Wizard. And at this stage it is really nothing more than a file with configuration. There is no database in it. It links to a database (backend) file, but it doesn't contain a database. It is common practise to save the .odb file in the parent directory of the directory where your data csv.file(s) live. Generally you can save this .odb file at any place you want. But keeping them in closely related directories allows you to give your database to others. You have to give them both: the .odb file in the parent directory and the subdirectory with the csv data files. If you store this structure into a zip archive the .odb file of the unpacked archive will find the the subdirectory with the csv files also on another computer.

- Database Wizard, step 2
Once the .odb file is completed you can open it and you will see each .csv file as a table on its own. In this case it is only one: PartData. The name of the table is the name of the file without the extension.
If you double click on it you will see a grid view of the table data.

- csv Data in the Gridview
If you have registered your .odb file (which is the default on step-3 of the wizard) you can now use your csv file as datasource
for a mail merge in Writer or for database ranges in Calc.
OpenOffice 3.1.1 (2.4.3 until October 2009) and LibreOffice 3.3.2 on Windows 2000, AOO 3.4.1 on Windows 7
There are several macro languages in OOo, but none of them is called Visual Basic or VB(A)! Please call it OOo Basic, Star Basic or simply Basic.