boost::iostream::copy(), inputstream and outstream output explanantion

后端 未结 1 452
不知归路
不知归路 2021-01-29 06:14

I have a txt file: gcc-4.7.2.txt : with the data written: Hello This is a test file. Thanks :compressed as gcc-4.7.2.tar.bz2

Now, I run the following code:



        
1条回答
  •  -上瘾入骨i
    2021-01-29 07:02

    If you uncompress the compressed tar archive, you get a tar archive!

    Tar archive format is described here: https://en.wikipedia.org/wiki/Tar_(computing)#File_format

    To show how that works, try this instead:

    dev4@sun-desktop:~/readerwriter$ ./test1 | tar x
    

    to extract the files

    0 讨论(0)
提交回复
热议问题