Ok, thanks but i have some questions, will this load subdirectories ?
and does it belong in the main loop ? how should i set it up in my program ?
basicly, does your code create two strings, one the previous dbGetFileName() and one the current ? and stops when the two are equal two each other ? if so, where should i place my write to file code ?
EDIT: i tried reproducing your code with different var names and im having problems
if(load == 1&& stop == 0)
{
dbFindNext();
pstring = lstring;
lstring = dbGetFileName();
dbWriteString(1,dbGetFileName());
}
if(pstring == lstring)
{
stop = 1;
dbCloseFile(1);
dbText(100,300,"DONE");
}
pstring is never equal to lstring
the result is a 10mb txt file with the last result repeated hundreds of times