Hi All
I have a line like so in side a function command
words$(array count(words$(0))) = temp$
Function showfile(filename$,maxcharwidth,filenumber)
rem array list to hold text from file
dim words$(0) as string
rem check to see if file specified is a text file
if lower$(right$(filename$, 4)) = ".txt"
rem check if file exists
if file exist(filename$)
rem open file for reading
open to read filenumber, filename$
rem add text from file to array list
while file end(filenumber) = 0
read string filenumber, temp$
if maxCharWidth > 0
wrapText(temp$, maxCharWidth)
else
array insert at bottom words$(0)
words$(array count(words$(0))) = temp$
endif
endwhile
endif
endif
rem close the file
close file filenumber
endfunction
Now do I change the variable word$(0) to say word1$(0).
I wish to open 2 or more files and copy the info into arrays like word1$(0), word2$(0)
tried word+str$(number)+$(0) but this does not work.
If you think you know what I am tring to do or can see an easier way let us know.
source code button has full list
In Space No One can Hear You Scream! (When your comm Line is cut?)