Jump to content

  • Log In with Google      Sign In   
  • Create Account

cross platform remote file read


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 abcdef44   Banned   -  Reputation: 2

Like
0Likes
Like

Posted 02 November 2012 - 03:51 AM

Hi
how to make this cross platfrom Windows/Mac/Linux:


FILE* remote = popen("curl 'http://host/path/to/your/file.ext'", "r");
char buf[1024];
fread(buf, 1024, 1, remote);


Maybe also copy a file from remote to local etc.
Many thanks
Michael

Sponsor:

#2 rip-off   Moderators   -  Reputation: 8217

Like
0Likes
Like

Posted 02 November 2012 - 04:13 AM

You could use the CURL C API directly.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS