Getting around the 2 gig limit
Richard Gaskin
ambassador at fourthworld.com
Wed May 30 01:55:20 EDT 2007
J. Landman Gay wrote:
> I actually got the following in my mailbox last week but was out of town
> for the weekend and I'm just catching up now. This is from Mark Waddingham:
>
>> I haven't had a chance to check this but something like the
> > following might work (as a workaround):
>>
>> on readFrom64 tFile, tFilePosition, tCount, @rData
>> local tResult
>> if tFilePosition <= 2147483647 then
>> read from file tFile at tFilePosition for tCount
>> put the result into tResult
>> put it into rData
>> else
>> seek to 2147483647 in file tFile
>> seek rel tFilePosition - 2147483647 in file tFile
>> read from file tFile for tCount
>> put the result into tResult
>> put it into rData
>> end if
>> return tResult
>> end readFrom64
So after all the sturm und drang it turns out the the seek command still
works on larger files?
--
Richard Gaskin
Fourth World Media Corporation
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list