Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.javascript > #8109

Scrivere su file TXT

Newsgroups it.comp.lang.javascript
Date 2016-12-12 02:00 -0800
Message-ID <c0ca2c89-7139-4cda-b1bb-da4353957f6f@googlegroups.com> (permalink)
Subject Scrivere su file TXT
From tres.farc@gmail.com

Show all headers | View raw


Ri-ecchime qua!

Ho un problem.
Di solito uso queste quattro righe di codice per creare (o sovrascrivere) un file "Esempio.txt" e metterci la stringa "CIAO".

//************************
function scrivi() {
	
 var fs, a, ForAppending;
 
 ForAppending = 2;
 fs = new ActiveXObject("Scripting.FileSystemObject");
 a = fs.OpenTextFile("Esempio.txt", ForAppending, true);
 a.Write('CIAO');
  
 a.Close();
 fs = null;
}
//*********************

Funziona molto bene, ma solo CON INTERNET EXPLORER e basta.
Possibile che non esista un metodo che mi dia il medesimo risultato con altri browser??????????

Come faccio?

Grazie e buone feste

Back to it.comp.lang.javascript | Previous | NextNext in thread | Find similar


Thread

Scrivere su file TXT tres.farc@gmail.com - 2016-12-12 02:00 -0800
  Re: Scrivere su file TXT Alessandro Pellizzari <shuriken@amiran.it> - 2016-12-12 10:43 +0000
    Re: Scrivere su file TXT tres.farc@gmail.com - 2016-12-12 06:36 -0800
      Re: Scrivere su file TXT "ciccio" <21669invalid@mynewsgate.net> - 2016-12-12 15:33 +0000
        Re: Scrivere su file TXT tres.farc@gmail.com - 2016-12-12 07:54 -0800
          Re: Scrivere su file TXT "ciccio" <21669invalid@mynewsgate.net> - 2016-12-12 16:31 +0000
          Re: Scrivere su file TXT g4b0 <email_sul_mio_sito@che_leggi_in.firma> - 2016-12-13 09:02 +0100
      Re: Scrivere su file TXT Alessandro Pellizzari <shuriken@amiran.it> - 2016-12-12 15:52 +0000
        Re: Scrivere su file TXT tres.farc@gmail.com - 2016-12-12 08:05 -0800
          Re: Scrivere su file TXT "ciccio" <21669invalid@mynewsgate.net> - 2016-12-12 16:32 +0000
          Re: Scrivere su file TXT Flng Fck <nothanks@invalid.invalid> - 2016-12-14 09:42 +0100
            Re: Scrivere su file TXT Alessandro Pellizzari <shuriken@amiran.it> - 2016-12-14 10:20 +0000
            Re: Scrivere su file TXT tres.farc@gmail.com - 2016-12-14 06:09 -0800
              Re: Scrivere su file TXT "ciccio" <21669invalid@mynewsgate.net> - 2016-12-14 15:27 +0000
                Re: Scrivere su file TXT tres.farc@gmail.com - 2016-12-15 02:22 -0800
                Re: Scrivere su file TXT Alessandro Pellizzari <shuriken@amiran.it> - 2016-12-15 10:42 +0000
                Re: Scrivere su file TXT tres.farc@gmail.com - 2016-12-15 09:01 -0800
                Re: Scrivere su file TXT Flng Fck <nothanks@invalid.invalid> - 2016-12-16 10:20 +0100
                Re: Scrivere su file TXT tres.farc@gmail.com - 2016-12-16 02:26 -0800
                Re: Scrivere su file TXT Flng Fck <nothanks@invalid.invalid> - 2016-12-16 11:56 +0100
                Re: Scrivere su file TXT Flng Fck <nothanks@invalid.invalid> - 2016-12-16 12:00 +0100
                Re: Scrivere su file TXT Alessandro Pellizzari <shuriken@amiran.it> - 2016-12-17 13:25 +0000
                Re: Scrivere su file TXT "ciccio" <21669invalid@mynewsgate.net> - 2016-12-17 14:22 +0000
                Re: Scrivere su file TXT RedWiz <redwiz@inwind.it> - 2016-12-16 12:10 +0000
                Re: Scrivere su file TXT tres.farc@gmail.com - 2016-12-16 05:02 -0800
                Re: Scrivere su file TXT g4b0 <email_sul_mio_sito@che_leggi_in.firma> - 2016-12-16 14:25 +0100
                Re: Scrivere su file TXT bramante <bramante@yopmail.com> - 2016-12-17 14:50 +0100
  Re: Scrivere su file TXT antonio2001trimarchi@gmail.com - 2018-05-25 01:08 -0700

csiph-web