在C中提取文本文件? [英] Extracting a text file in C?

查看:96
本文介绍了在C中提取文本文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发送一个文本文件,这是一个从Android到C的zip文件,因此在接收时我需要提取文本文件。我问如何提取一个压缩的文本文件?

I am trying to send a text file which is a zip file from Android to C, so while receiving i need to extract the text file. I am asking how to extract a text file that is zipped?

推荐答案

如果你在通信过程中丢失了字节,我几乎看不到它就像一个好的解决方案。无论如何,解压缩接收文件的最简单方法是使用linux 解压缩 [ ^ ]命令(您可以通过系统 [ ^ ]致电)。
If you are loosing bytes in the communication process, I hardly see zipping it like a good solution. Anyway, the simplest way for unzipping the received file is using the linux unzip[^] command (you might run it from your application via the system[^] call).


这篇关于在C中提取文本文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆