Created:
Jun 28, 2022 12:45 PM
| Last Modified: Jun 10, 2023 4:50 PM(585 views)
I am importing a txt file that has junk in the first row and data starts on the second. The junk data is not consistent between different files so I want to get rid of it, but when I use the following to get rid of the first line and designate no headers, the first column of data disappears. How do I import this file without losing that column and without column headers.
Alternatively can I import the file with the column headers and then rename each column based on its position rather than based on its title?
open(File,
Table Contains Column Headers (0),
Treat Empty Columns as Numeric(1)
Data Starts|Data starts on line (2)
);
0 2022-06-23 14:55:29 #ARC-FILE# 1.1a 2022-05-04 2022-06-23 CEDEX BIO HT 630026 6.0.1.2102 (1905) ADMIN
10 2022-06-14 10:20:59 CA2B CAL C 62232400 261 62809100 mg/L 78.00 0.00 0.10250 0.00779 0.0077860 20.546763
10 2022-06-14 10:22:18 CA2D CAL C 62232400 261 62809100 mg/L 780.00 0.00 0.10121 0.00793 0.0079316 20.863648
10 2022-06-14 10:23:01 FE2B CAL C 62232400 572 61840600 mg/L 3.80 0.00 0.04336 0.00318 0.0031815 1693.9365