=================================
Section 8.3 open and create calls
=================================

Question
========

Demonstrate the `cp` like program which copies the contents of one file to another.


.. literalinclude:: ../../languages/cprogs/sec_8.3_open_creat.c
   :language: c
   :tab-width: 4

.. runcode:: ../../languages/cprogs/sec_8.3_open_creat.c
   :language: c
   :codesite: ideone

Explaination
============

ADDEXPLAINATION

.. git_changelog::


.. seealso::

   * :c-suggest-improve:`sec_8.3_open_creat.c`
   * :c-better-explain:`sec_8.3_open_creat.rst`


=================================
Section 8.3 open and create calls
=================================

Question
========

Demonstrate the `cp` like program which copies the contents of one file to another.


.. literalinclude:: ../../languages/cprogs/sec_8.3_open_creat.c
   :language: c
   :tab-width: 4

.. runcode:: ../../languages/cprogs/sec_8.3_open_creat.c
   :language: c
   :codesite: ideone

Explaination
============

.. use-local-compiler::


.. git_changelog::


.. seealso::

   * :c-suggest-improve:`sec_8.3_open_creat.c`
   * :c-better-explain:`sec_8.3_open_creat.rst`


Use local compiler to try open creat program.
Use local compiler to try open creat program.