Re: Speed question
- Posted by "Kat" <gertie at visionsix.com> Jan 20, 2004
- 504 views
On 19 Jan 2004, at 20:08, Allen Robnett wrote: > > > After opening a Euphoria text file "r", I am reading in one million > 8-character words, (the entire file). > > clear_screen() > fp=seek(fn,0) -- why do you seek()? > s = get(fn) Since the file is not \n delimited, i'd use gets() > close(fn) > word_array = s[2] -- what? > word_array[4][6] is then the 6th letter of the 4th word in the array. using gets, word_array[wordlen x wordnum][6] is the same. > It works fine, but it takes fifteen minutes to read in the array. Is > there a better way? There must be, i can get a megabyte off the internet in 15 minutes! Take a peek at function getf() in file.e. Kat Kat