Read from file not working 4.5?

Bob Sneidar bobs at twft.com
Fri Sep 24 18:48:33 EDT 2010


Wha??


On Sep 24, 2010, at 11:21 AM, Nancy Birnes wrote:

> 
> ---------------------------------------------------
> Nancy Hayfield Birnes, editor in chief
> 
> www.futuretheater.com
> www.ufomagazine.squarespace.com
> www.filamentbookclub.com
> www.filamentbooks.com
> www.ufomag.com
> 
> Visit • Blog • Engage • Read • Subscribe
> ---------------------------------------------------
> 
> 
> 
> 
> 
> 
> 
> On Sep 24, 2010, at 1:46 PM, John Patten wrote:
> 
>> Hi All...
>> 
>> I have a stack that reads a text file and puts that text in a card fld. It works in 4.0, but when I open the same stack in 4.5 LiveCode it does not work?
>> 
>> 
>> Here is the simple script:
>> 
>> on openStack
>>  put the defaultFolder into tFilePath
>>  open window "data" of stack "Data"
>>  put tFilePath&"/"&"imageData" into tTargetToOpen
>>  open file tTargetToOpen
>>  read from file tTargetToOpen until EOF
>>  put it into cd fld "data" of cd 1 of Stack "data"
>> end openStack
>> 
>> 
>> What am i missing here for this not to work in 4.5?
>> 
>> Thank you!
>> 
>> John Patten
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list