Can a single schema.ini definition cover multiple files

c#, csv, schema

Solution

As far as I can tell this isn't possible

-******** In fact it's posible, you can do it in this way.

[file1.csv]
FORMAT = Delimited(#)
ColNameHeader = True
MaxScanRows=10
Col1=...
Col2=...
ColN=...

[File2.csv]
FORMAT = Delimited(#)
ColNameHeader = True
MaxScanRows=10
Col1=...
Col2=...
ColN=...

Regards!

Problem

I have defined a schema.ini file for a CSV file, but I have multiple CSVs which I would like to use the same definition for as they are a sequence. I.e ``` File0.csv File1.csv File2.csv File.etc.csv ``` My schema would be something like: ``` [File*.csv] Format=Delimited(,) ColNameHeader=True col1="Brand Code" Text col2=Description Text col3="Display Sequence" Text ```

Original source