如何使用C编程发送整个文本文件 [英] How to send a entire text file using C programming

查看:80
本文介绍了如何使用C编程发送整个文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道如何使用C编程发送包含数据的整个文本文件...

Hi,

I would like to know how to send a entire text file with data in it using C programming...

推荐答案

这不是我们真正能够回答的问题:它将在很大程度上取决于您在两个系统之间使用何种物理接口,以及在两者上运行的软件。



Android(例如)在没有其他软件的情况下不支持FTP - 我使用FTP服务器 [ ^ ]和FileZilla,但是使用libcurl也可以从C语言中使用FTP。

但是有这么多连接两个设备的不同方式,它们都需要不同的方法来交流它们,我们所做的任何答案几乎肯定不适合你我想做 - 而且只有你知道其中的细节。



所以请坐下来,找出你所拥有的通信接口,看看每个接口是如何适应的你的任务参数。然后根据这个问题提出一个更具体的问题(如果你需要),并向我们提供大量信息!
This isn't a question we can really answer: it's going to depend to a large extent on what kind of physical interface you have between the two systems, and what software is running on both.

Android (for example) doesn't support FTP without additional software - I use FTP Server[^] and FileZilla, but FTP from C is also possible using libcurl.
But there are so many different ways to connect two devices, and they all require different methods to communicate across them that any answer we did give would almost certainly be inappropriate to exactly what you want to do - and only you know teh details of that.

So sit down, work out what communications interfaces you have available, and see how each of those fits into your task parameters. Then ask a more specific question (if you need to) based on that, and giving us plenty of information!


这篇关于如何使用C编程发送整个文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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