Other articles


  1. Reading TAR files in C++

    Fr 29 März 2013
    By Uli Köhler

    In C/C++

    This article describes a method of  reading TAR archives (including .tar.gz and .tar.bz2) in C++ using Boost IOStreams.

    You could use libtar for this, but libtar hasn’t been updated since 2003 and doesn’t provide you flexibility and insight to the internal structure of a TAR archive ...

    read more
  2. C++: Check if file exists

    Fr 11 Januar 2013
    By Uli Köhler

    In C/C++

    Problem: In C++ you want to check if a given file exists, but you can’t use stat() because your code needs to work cross-plaform.

    Solution: This solution is 100% portable (stat() isn’t, even if it it’s widely support), but note that it opens the file, so it ...

    read more