Jump to content

View more

Image of the Day

Working on an auto spawn system. #gamedev #indiedev #screenshotsaturday https://t.co/Mm2kfekz7b
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

cross platform remote file read

4: Adsense

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   

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

#2 rip-off   Moderators   

10884
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.