如何从文件中读取输入和写入输出在C另一个文件

问题描述:

我不是C.很好的我怎样才能让我的程序从文件中读取输入和写入输出到另一个文件
用C?

I not very good at C. How can I make my program read inputs from a file and to write outputs to another file in C?

对于C ++,有很好的例子的这里和here.

For C++, there are great examples here and here.

有关C,检查这个参考。它打开一个文件,在写入的东西,然后再从中读取。这是pretty多少你所寻找的。
此外,这个页面是伟大的,因为它解释的fopen / FREAD / FWRITE在详细信息。

For C, check this reference. It opens a file, writes something on it, and then reads from it. It's pretty much what you are looking for. Also, this page is great as it explains fopen/fread/fwrite in detail.