|
-
Jul 21st, 2004, 01:20 PM
#1
Thread Starter
New Member
Array Problems? o.O
ok, i'm going to try to be as unvague as possible. Umm basically i have information stored in an array we can called "ArrayA". Each element in the array is a searchword that reads a text file and finds a match, its read the text file line by line and it basically stores the line if it finds a match. Once a match is found, it jumps to the next search word in ArrayA and searches the same line over again to see if it finds a match, if it does it stores it into an array (all the searchresults are stored into the same array so it just adds on to the end of the array). This process basically repeats till it has gone thorugh all the searchwords, then it moves on to the next line and repeats the process for the entire document.
But i sort of want it so that everytime the first searchword finds a word, it'll store it in an element like what it does now, but when it moves on to the next line, i want is to that intead of adding to the array, if the first searchword finds another match i want it to add on to the element that the first line is stored in. and so on for all the searchwords
is that possible?
PS: i would show you my code, but its company property and its also my first code so it's kinda ugly and very unorganized
tell me if what i just said didn't make any sense....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|