Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #35767
| From | Flng Fck <nothanks@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Read in textfile as a variable? |
| Date | 2018-10-10 10:06 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <ppkc13$l7g$1@dont-email.me> (permalink) |
| References | <bf42ca7d-56eb-472a-99e0-974da6dfe440@googlegroups.com> |
Il 09/10/2018 22:10, Jonas Thörnvall ha scritto: > The sequenser will have instrument files for patches of external instrument. Since i do not want to bother the user with open load instruments files i was thinking i make menues where the instruments files available by click."Modern computers have lots of memory some hundreds of KB is nothing" > > So i create a JS file for every instrument file. > > The js for each instrument will basicly just be. > > korgN364=" A long, long... instrument file here, yes yes very long.... maybe 20 KB" > > But javascript protests, so is there a maxlength for a string or is it characters like newlines and stuff that prevents it from load into variable? > > I have checked so there is no " or ' to break the string. > There are some ' in there, the first one is around line 288 of the code you posted later
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Read in textfile as a variable? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-10-09 13:10 -0700
Re: Read in textfile as a variable? JJ <jj4public@vfemail.net> - 2018-10-10 05:49 +0700
Re: Read in textfile as a variable? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-10-09 21:22 -0700
Re: Read in textfile as a variable? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-10-09 23:19 -0700
Re: Read in textfile as a variable? JJ <jj4public@vfemail.net> - 2018-10-11 20:52 +0700
Re: Read in textfile as a variable? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-10-11 15:03 -0700
Re: Read in textfile as a variable? Flng Fck <nothanks@invalid.invalid> - 2018-10-10 10:06 +0200
Re: Read in textfile as a variable? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-10-10 09:56 -0700
csiph-web