;

PDA

Click to See Complete Forum and Search --> : generating a text file


bostonflash
10-27-2000, 12:23 PM
I am using the following code to output a text file so I can import the variables into a stand alone presentation.

on (press) {
data1 = "nm="+ci1+"&tl="+ci2+"&ad="+ci3+"&cy="+ci4+"&st="+ci5+"&zp="+ci6+"&ph="+ci7+"&fx="+ci8+"&em="+ci9+"&ul="+ci10;
fscommand ("exec", "command.com"+chr(9)+"/c"+chr(9)+"echo"+chr(9)+data1+">prefs1.txt");
}


The Problem is that it has a limit to how many characters it will let me write. I have twice as many variables and the user may have a long name, descriptions etc.

Any ideas appreciated.

Ilya
10-27-2000, 02:19 PM
Hi !

Try to write it not at once :) Several fscommand ("exec", ... + several lines in text file must solve your problem :)
You can append files - i have example about it on my page (it is last number :)

dw@dwweb.com
10-29-2000, 06:53 PM
My problem is that the dos command fails if there is a space in the input text. Do you know how I can convert the space into '%20' and back into a space again?