Rading and altering a remote file
by Amjad Yahya · in Torque 2D Beginner · 11/12/2013 (4:46 am) · 4 replies
Is there a way through script to read files from a remote server, modify and save it back?
#2
11/12/2013 (6:25 am)
In TCPObject wiki there is no method to open a remote file, just how to establish a connection with a remote server.
#3
11/12/2013 (6:45 am)
I've never really tried remote file I/O with stock T2D. My approach would be to implement some C++ code for downloading the file, modifying it locally, then sending it back to the server. libCurl is the first thing to come to mind. It's proven, easy to implement, and has been used in Torque in the past. It will require C++ coding, though.
#4
11/12/2013 (7:09 am)
Thanks Michael, I will take a look at libCurl and post back with my findings.
Employee Michael Perry
ZombieShortbus