Scott Morrow wrote:

This seems a no-brainer but I've stalled. I'm reading names from a text file and then creating files based on these names. I'd like to check and see if the file already exists before creating a new one. The text files were created in BBEdit. I unable to figure out why I can't cause a match using my data. I've looked at the variables in the debugger and even run charToNum comparisons ( everyone seems to be using the ascii 10 LF.) But even though it seem like it should match... it don't.


 if tName is among the lines of tPreExisitingFiles then
      -- never gets here
 end if

alternately I tried

set the wholematches to true
if lineOffset(tName,tPreExisitingFiles) <> 0 then
      -- never gets here
end if

Anything else I should  check?

File separator issue ? (i.e. "/" vs "\" vs ":")
How is the list of files generated ?  Whole path versus just the file name ?
Send a sample of the file that you read ... maybe someone will spot something ?

or try
if there is a file "tName" then



--
Alex Tweedly       http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 04/07/2006

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to