A simple class which reads the Apple EPF files and exposes it as a DataReader and Enumerable.
Implements IDataReader
and IEnumerable
completely.
##Usage##
Include AppleEPFReader.cs
in your project.
OR
Build the library and include that in your project.
using (var reader = new AppleEPFReader("PATH_TO_FILE")) { //Create new instance, open EPF file and initialize reader
while (reader.Read()) { //Read next record
Console.WriteLine((string)reader["FIELD_NAME"]); //Fetch 'FIELD_NAME' column and print to console
}
}
##Build a library (dll)##
- Open the visual studio command prompt.
- Navigate to the directory where
AppleEPFReader.cs
is stored. - Compile using the following command
csc /target:library AppleEPFReader.cs
- You will find a
AppleEPFReader.dll
created in the directory which can now be included in your project.
##Apple Enterprise Partner Feed## Read more about Apple's EPF at http://www.apple.com/itunes/affiliates/resources/documentation/itunes-enterprise-partner-feed.html