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,247 次查看
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 回复数

542 次查看
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 项奖励
回复

542 次查看
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 项奖励
回复

542 次查看
scifi
Senior Contributor I
What about tar itself?
0 项奖励
回复