private static void ProcessFile(string filename, string outputFilename, CsvFile csv) { for (int i = 0; i < csv.Rows.Count; i++) { var r = csv.Rows[i]; var s = SimpleShef.ReadSimpleShefA(filename, r["shefloc"].ToString(), r["shefcode"].ToString()); HydrometInstantSeries.WriteToHydrometFile(s, r["cbtt"].ToString(), r["pcode"].ToString(), WindowsUtility.GetUserName(), outputFilename, true); } }