Legacy and file format issues

Mark Smith mark at maseurope.net
Fri Sep 14 22:07:46 EDT 2007


I suppose if we want to be economical, just one byte would do...

function isLegacy someStackFile
  open file someStackFile for read
  read from file someStackFile for 1
  close file someStackFile
  return (it is "#")
end isLegacy




On 14 Sep 2007, at 13:06, Klaus Major wrote:

> Hi all,
>
> Am 14.09.2007 um 13:53 schrieb Mark Smith:
>
>> You only need to read the first couple of bytes - in a 'legacy  
>> stack' the first 2 bytes will be '#!', whereas in a newer stack  
>> they will be "RE".
>> Best,
>> Mark
>
> Yes, as I already posted yesterday :-)
>
> OK, I suggested to check the first EIGHT bytes... ;-)
>




More information about the use-livecode mailing list