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... ;-)
_______________________________________________
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