Sign in to follow this  

cross platform remote file read

This topic is 1902 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Sign in to follow this