A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: generating a text file

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Location
    Boston
    Posts
    118
    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.


  2. #2
    The Supreme Shaman and Keeper of Polar Lights
    Join Date
    Apr 2000
    Posts
    1,175

    Smile

    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

  3. #3

    Found my problem

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center