ID:2646396
 
(See the best response by LordAndrew.)
Similar to the proc text2file(), which allows you to save a string to a .txt file on the server, is there a way to save an icon to the server as well?

I'm in the process of creating a new function in my game, and part of it involves players setting icons to a number of different objs, I want to allow the game to compile those icons for the player. Take each individual icon, extract the individual state that the obj uses, and insert it in to a new icon, and then allow the player to save that icon.

I can do all of that, but I also want to keep a series of backups on the server as well.

usr << ftp(icon(final_icon),"[usr.name] Custom Icon.dmi")


I know this will allow the player to save the icon, but is there a way to also store a copy on the server as well at the same time?
Best response
You can use fcopy() to save it to a local directory.