Text_Export()
set desc = "Importing Text File Test"
set category = "Testing"
var/msg = input("Enter the text you want to make in to a txt file.","Text Export") as null|message
if(!msg) return
text2file(msg)
return
Problem description:
The code above gives an error saying text2file needs 2 arguments. It's asking for a file path for an existing file to append to.
So im trying to play around with text2file and file2text. text2file doesn't seem to work the way I want it to though.
I am trying to take a string and create a txt file out of it. I don't want to append to an existing file, I want to create a new file containing the string and let the user choose the filed name/location. Similar to the ftp() proc but ftp wont let me just run a string through it.
Is there a way to actually do what I'm trying to do here?