{"id":5715,"date":"2023-01-24T08:16:52","date_gmt":"2023-01-24T08:16:52","guid":{"rendered":"http:\/\/ebhor.com\/?p=5715"},"modified":"2023-01-26T11:55:01","modified_gmt":"2023-01-26T11:55:01","slug":"writing-to-a-file-in-c-programming","status":"publish","type":"post","link":"https:\/\/www.ebhor.com\/writing-to-a-file-in-c-programming\/","title":{"rendered":"Writing to a File in C Programming"},"content":{"rendered":"\n

To write on a file there are following  function available:<\/p>\n\n\n\n

  1.  Function fputc()<\/strong> :\nfunction fputc() <\/strong>write individual\ncharacters at a time to the file. The syntax of this function is \u2013<\/li><\/ol>\n\n\n\n

    Syntax :<\/strong><\/p>\n\n\n\n

                   int  fputc( int c,  FILE *fp );<\/strong><\/p>\n\n\n\n

    Function fputc()\n<\/strong> returns the written character\nwritten on success and  if\nthere is an error it will return EOF (Emd of File)<\/strong>.<\/p>\n\n\n\n