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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,249件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

544件の閲覧回数
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 件の賞賛
返信

544件の閲覧回数
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 件の賞賛
返信

544件の閲覧回数
scifi
Senior Contributor I
What about tar itself?
0 件の賞賛
返信