I know, I know, I probably confused you! :)
I have this:
namespace WebPageHeaderFixer
{
class Program
{
static void Main(string[] args)
{
string folderToSearch = @"C:\Test\";
foreach (string file in Directory.GetFiles(folderToSearch))
{
string fileString = File.ReadAllText(file);
//Here, I want to insert string X into "fileString" AFTER string Y.
}
}
}
}
I want to add the string X into the variable fileString after the LAST Register TagPrefix:
<%@ Register TagPrefix="ucCal" TagName="popupCalendar" Src="../UserControls/popupCalendar.ascx" %>
<%@ Register TagPrefix="ucRes" TagName="Search" Src="../UserControls/SearchControl.ascx" %>
<%@ Register TagPrefix="abc" TagName="header" Src="../Header.ascx" %>
//I want to insert X here
other code
some more code
some ugly code
How do I go about doing this?
*Please note that the last Register tag might be different between files.
<%@ Register ... %>tags span multiple lines, or is each one contained to its own line?