Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


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: 8762

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