public static void Run()
{
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
// ExStart:SaveProjectAsText
// Read the input Project file
Project project = new Project(dataDir + "CreateProject2.mpp");
// Save the Project as text
project.Save(dataDir + "SaveProjectAsText_out.txt", SaveFileFormat.TXT);
// ExEnd:SaveProjectAsText
}
}