D
DaveF
The following code does not seem to work in a Windows service. Is there
anyway I can make it work?
Stream inStream = Console.OpenStandardInput();
if (this.archiveName != null && ! this.archiveName.Equals( "-" ))
{
inStream = File.OpenRead(archiveName);
}
if (inStream != null)
{
if (this.compressed)
{
inStream = new GZipInputStream(inStream);
}
archive = TarArchive.CreateInputTarArchive(inStream, this.blockSize);
}
anyway I can make it work?
Stream inStream = Console.OpenStandardInput();
if (this.archiveName != null && ! this.archiveName.Equals( "-" ))
{
inStream = File.OpenRead(archiveName);
}
if (inStream != null)
{
if (this.compressed)
{
inStream = new GZipInputStream(inStream);
}
archive = TarArchive.CreateInputTarArchive(inStream, this.blockSize);
}