#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    How to write and read from a file in C


    How to write and read from a file in C programming language?
    Lets say i have two variables, one int and one string. What are the commands to open a file (if the file exist do not delete it but write in the end of the file), save the two variables as binary data, then close the file. After that open the file and read the two variables. (and what are the #includes if needed)
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Location
    India
    Posts
    95
    Rep Power
    4
    read file operation from your book,you will get all your answers.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    40
    Rep Power
    19

IMN logo majestic logo threadwatch logo seochat tools logo