I need a short C# program to:
1. Open a CSV input file, read order numbers
2. Parse each tracking number from an order webpage
3. Save to an output file
The Input file format and example row is:
Transaction ID Item ID Sale Date Paid on Date Custom Label
779131611003 491832 Apr-06-13 Apr-06-13 AH120080|D1304061716223543|0V087846E8713931S
The order page sample is:
[login to view URL]
The Output file format and example row for found tracking numbers is:
Action TransactionID ItemID Shipped on Date ShippingStatus ShippingCarrierUsed ShipmentTrackingNumber
Status 780991544003 985470 4/11/2013 1 17trackdotnet RB370562200CN
The Output file format and example row for exceptions (orders with no tracking older than 5 days or status waiting payment older than 1 day is):
TransactionID ItemID OrderID OrderDate Status
780991544003 985470 D1304071846123447 4/11/2013 Waiting for payment
The code should be well-structured and written in as few lines as possible.