Scenario: Every night my system downloads about 200 csv files. Recently, the format of them has changed. Now appended to every CSV file are the first 4 rows of data which are not in CSV format.
I have always been able to merge them into one csv. However now, I have the repeating 4 rows at the begging of every CSV! I would like to clean up each CSV Files 4 rows at the top which are not in comma format. Heres the tricky part. Some of the data in the 4 rows is different. The account number.
In the 2nd row of the CSVthe exact information "Account Number - XYZ" In past times, I would append the file name of the csv to the first entry in the row of the csv files. That way when all the csv files were merged I could tell which csv account it came from. My format has now changed where the CSV files all have temp names. The system now stores the account number on the 2nd row of the CSV.
Next comes the header. Each file has the same exact header at the start of the CSV. This was originally my first row before the format changed. I was simply able to remove the first row and merge in previous trials. I only need the header for the columns at the very start of the CSV. Since my tech lingo might be off, Ill try to provide a sample of the data I have, and the out put I am looking for. I would be forever grateful.
Heck anyone that can solve this please give your PAYPAL and I will GLADLY! send you a donation thank you

-Mike
Sample Data Provided from Downloaded CSV Files.
===================================================
Owner Information
Account Number - XYZ
Owner Address
Heading1, Heading 2, Heading 3
"data1","data2","data3"
"data1","data2","data3"
"data1","data2","data3"
===================================================
**The owner information Line can be removed, but I need to read the account number that follow the hypen after "Account Number -" If at all possible have that appended to its own column before data1. Then removing the rest of the 4 lines in the beginning. There is a line that is completely blank. Line 4. Dont ask me why someone decided to include a blank line in a CSV! The 5th line which contains the heading names is not even needed either. My imports have been the same for the last 20 years until someone changed our bank recently.
Final Product:
=================================================
"XYZ","data1","data2","data3"
"XYZ","data1","data2","data3"
"XYZ","data1","data2","data3"
=================================================
Thanks everyone!