Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Here are the general steps to accomplish this task:

Step 1: Open the file from which rows need to be extracted or read.

Step 2: Read one row at a time from the file.

Step 3: For each row read, extract the reference number(s) from the row.

Step 4: Open the file in which the reference numbers need to be searched.

Step 5: Search for each reference number extracted from the row in the file.

Step 6: If a reference number is found, retrieve the corresponding data from the file.

Step 7: Combine the extracted data and the reference number(s) from the current row into a new row.

Step 8: Write the new row to a new file.

Step 9: Repeat steps 2 to 8 until all the rows from the original file have been processed.

You will need to use programming languages like Python, Perl or Ruby to accomplish these steps. You can use file I/O operations, regular expressions or other libraries to read, extract, search, and write data to files. However, the exact implementation will depend on the structure and format of your files.