How to create a single file (tar like) archive that contains 3 files

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create a single file (tar like) archive that contains 3 files

1,050 Views
med_device
Contributor I

I am using Freescale's 32-bit ColdFire® microprocessor 52277 with CodeWarrior. For USB file transfer I would like to create a single (.tar like) archive of 3 concatenated files that can be uploaded to a Web server as a single file.

 

Can anyone suggest a library or package that will help me do it?

 

Thanks,

 

med_device

Labels (1)
0 Kudos
3 Replies

345 Views
med_device
Contributor I

Is tar supported on microprocessor 52277 with C language interface? I would like to write a C routine that can archive the 3 files present on the USB into a single one with filename supplied as parameter. Can you point me to tar's package or library that I can include in my C code and use it's commands?

 

Thanks.

0 Kudos

345 Views
scifi
Senior Contributor I

Sorry, I must have misunderstood your requirements. I thought you were going to run tar on the PC and I was going to point you to the win32 version of tar. Instead, you want to run it on the MCU.

Surely, it's trivial to write a simple file concatenation program. You probably don't even have to do it. You could modify your file upload routine to upload a simple header (describing the files that follow) followed by the files one-by-one.

0 Kudos

345 Views
scifi
Senior Contributor I
What about tar itself?
0 Kudos