Exforsys
+ Reply to Thread
Results 1 to 2 of 2

How to open the file

This is a discussion on How to open the file within the C and C++ forums, part of the Programming Talk category; I want to open a file in binary mode in C programming language. What is the syntax for doing this? ...

  1. #1
    Adrian is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124

    Question How to open the file

    I want to open a file in binary mode in C programming language. What is the syntax for doing this? Someone kindly give a example for me to understand the usage of this.


  2. #2
    Angela is offline Member Array
    Join Date
    Apr 2006
    Answers
    85
    For opening a file in binary mode you can do as follows:
    FILE *out = fopen("c:\\exforsys_file.doc","wb");

    The above open the output file named as exforsys_file.doc in binary mode.

    Try and let us know.


Latest Article

Network Security Risk Assessment and Measurement

Read More...