How to use ResourcesIf you have to build string base on txt file in your application you can utilize Resources for that matter. And this resources could belong to different Class Library. Code is much more compact then when you open a txt file directly.
private
string ReturnCodeForCustomObject(CustomObject obj)
{
string
sBuffer = DLLName.Properties.Resources.FileName.ToString();
sBuffer = sBuffer.Replace("{0}", obj.Text);
return
sBuffer;
}