Hi,
Is it possible to read a Project from FileStream? Please give an example if so.
Hi,
Is it possible to read a Project from FileStream? Please give an example if so.
Yes, the project can be read from FileStream.
Please follow the example code below:
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
// Read project xml into file stream
using (Stream filesStream = new FileStream(dataDir + “ReadProjectFileFromStream.xml”, FileMode.Open))
{
// Create project using file stream
Project project = new Project(filesStream);
}