determining a plain text file

J. Landman Gay jacque at hyperactivesw.com
Sun Jul 9 23:13:54 EDT 2006


Bill Marriott wrote:
> How about this idea:
> 
> put url "file:{yourfile}" into oneFile
> put replacetext (oneFile,"[^\x20-\x7E\n\r\t]","") into twoFile
> if length(oneFile) = length(twoFile) then put "It's a plain text file."

That's pretty clever.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list