ID:156328
 
I have managed to use fcopy() to create a .txt, .htm, etc. file in-game, but the issue I'm having is it is not adding information - it creates the file, but it all has 0 bytes. Am I missing something here?

make_file()
var/t = input(usr,"Input the content of the file.") as message
var/n = input(usr,"Name the file (include extension)") as text
var/file/f=fcopy(t,n)


In addition - how would you go about copying text from say a .txt file? Copytext() doesn't seem to work for me, but I'm not sure if I'm just using it incorrectly in this format. Any ideas?

[Edit: Solved. text2file()]