| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
How to write data in file and read from that file
From: Ajeet kumar.S <ajeetkumar.s_at_jasmin-infotech.com>
Date: Sat, 12 Jul 2008 12:12:55 +0530
Hi all,
Thank you Dan. Actually I have doubt how we can write the data in a
Here I mention one write call back function:
Here we set curl option like that.
curl_easy_setopt(curl CURLOPT_WRITEDATA, data_writecallback_fun );
data_writecallback_fun(void *stm_ptr, size_t size, size_t nmemb, void
{
int tot_len=0;
char file_name[]= "abc.txt";
data= file_name;
tot_len = size * nmemb;
memcpy(data _ptr,stm_ptr,tot_len);
}
void *data point to file name where we are going to write data.
Can it is possible to clear the whole file data using curl api.
As you told curl support .netrc file. But it support the password and user
Please suggest me.
Thank you.
Regards,
Ajeet Kumar Singh
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info