private string SquirrelCampList() { StringBuilder sb = new StringBuilder(); ExportManager oEM = new ExportManager(); DataTable dt = ExportDataDAL.SquirrelCampList(); if (dt != null && dt.Rows != null && dt.Rows.Count > 0) { foreach (DataRow dr in dt.Rows) { string strOutput = ""; string campNumber = "000" + Convert.ToString(dr["CampID"]); campNumber = campNumber.Substring(campNumber.Length - 3, 3) + new string(' ', 8); string campName = Convert.ToString(dr["CampName"]) + new string(' ', 35); strOutput = campNumber.Substring(0, 8) + "0"; strOutput += campName.Substring(0, 35) + "A0" + new string(' ', 59) + "0"; sb.AppendLine(strOutput); } } return(sb.ToString()); }