Composer les archives SHAR
Contents
[
Hide
Show
]Aper�u
shar est un script shell Unix valide. Ce format est en grande partie obsol�te. Cependant, vous pouvez composer une telle archive avec Aspose.Zip de la m�me mani�re que les autres archives.
1try (SharArchive archive = new SharArchive()) {
2 archive.createEntry("alice.txt", new FileInputStream("alice.txt")) ;
3 archive.createEntry("data.bin", new FileInputStream("block.raw")) ;
4 archive.save("result.shar") ;
5} catch (IOException ex) {
6}