Can I use tar and untar in c#? And if I can how exactly? (didn't find
any code samples)
You can use any type of file you wish, in any programming language you
wish. First you must understand the file format, and then you must
write code or seek out a library that will parse the file format and
work with it for you from your application.
A tar file is just an archive. ("tar" stands for "tape archive" and
comes from the world of UNIX.) As such, you can see the source code to
an open-source tar program such as GNU tar
(
http://www.gnu.org/software/tar) which is written in C, and you can
from that source code see what the tar on-disk formats are (there are a
few different ones from the original tar on to today's versions of
tar).
Secondly, you'll have to decide how to handle tar files if you're going
to be adding to them. Why? Because tar files come from the world of
UNIX-style permissions and have more metadata than, say, ZIP files.
Also, if you control the system you're getting data from, you can
simply request that the system give you ZIP files to work with, if you
just want to work with something you know already.
--- Mike