Ejemplo n.º 1
0
 private static void WritePftxsArchive(PftxsFile pftxsFile, string workingDirectory)
 {
     string outputPath = Path.Combine(workingDirectory, pftxsFile.Name);
     string fileSystemInputDirectory = string.Format("{0}\\{1}_pftxs", workingDirectory,
         Path.GetFileNameWithoutExtension(pftxsFile.Name));
     IDirectory inputDirectory = new FileSystemDirectory(fileSystemInputDirectory);
     using (FileStream output = new FileStream(outputPath, FileMode.Create))
     {
         pftxsFile.Write(output, inputDirectory);
     }
 }
Ejemplo n.º 2
0
 public static PftxsFile ReadPftxsFile(Stream input)
 {
     PftxsFile pftxsFile = new PftxsFile();
     pftxsFile.Read(input);
     return pftxsFile;
 }