How to Open CPIO Archive Using C#
In order to view a cpio archive, we’ll use
API which is a feature-rich, powerful and easy to use API. It allows to open and view ZIP, TAR, 7ZIP, CPIO, XAR, RAR file formats on .NET platform without installing any software like WinRAR or 7ZIP. Moreover, developers can convert archive to another format. To add the reference, Open
package manager, search for Aspose.ZIP and install. You may also use the following command from the Package Manager Console.
Package Manager Console Command
PM> Install-Package Aspose.Zip
Steps to View Entries of CPIO archive via C#
Opening CPIO archive to review entries consist of following steps:
- Compose CPIO archive, prepared for decompression. For this purpose supply the path to the compressed file within CpioArchive constructor.
- Now Entries property of the CpioArchive contains the list of CpioEntry.
- Use Name property of CpioEntry to find out the name and path of the entry. You can look at other properties for some more details.
CPIO Viewer Requirements
Before executing the code below, please make sure that you have the following prerequisites on your system.
- Microsoft Windows or a compatible OS with .NET Framework, .NET Core
- Development environment like Microsoft Visual Studio
- Aspose.ZIP for .NET DLL referenced in your project
- Add namespace in relevant class file
Open CPIO Archive - C# code example
Free App to Open CPIO
Check our live demos for CPIO viewer with following benefits.