View Full Version : Batch files .. you know you want to click here ;)
11-14-2002, 02:43 PM
Soooo i need to save a txt file soo i was thinking about making a batch file to that would save the txt on the sites server...
I have some experiance with batch file programming and have been programming in C++ for 4 years but any ideas to how to save a string from flash in to a txt file. Any one have an idea.
I was also thinking about doing a perl script that would allow me to upload but if i could get this to work that would be awesome.... 5 more days untill i need it done i just have this one last thing too .... DOH
if your saving it to your server (not the client harddrive), then use a perl script (or anyother server side script) to do it.
11-14-2002, 03:46 PM
So i would use the fscommand to do it? right...
Sorry im not to good at perl and flash combined
fscommand("exec", upload.pl) or something like that?
no... no fscommand online.
you would use the LoadVars() object, or loadVariables()... whatever your favorite flavor is.
here's a rough example:
var myText="a shitload of text here";
var sender=new LoadVars();
file (i don't know perl, so its just pseudocode)
//grab info from sender (form object)
//create your file or open an existing file
//add the content to the file
//close the file
//if no errors occured output:
&recieved=error updating file: + error description&
anyway... like i said, its pretty rough, look thru the tutorials in the intermediate section... lots on connecting flash to php. concept is exactly the same, just substitute the backend language your familiar with.
11-14-2002, 10:28 PM
THANK YOU SO MUCH:cool:
11-14-2002, 11:14 PM
just a quick test to see if we can swear inside the code tags ;)
this.text="**** a ****";
11-14-2002, 11:15 PM
vBulletin® v3.8.5, Copyright ©2000-2014, Jelsoft Enterprises Ltd.