can't display text from file
JimAultWins at yahoo.com
Mon Oct 30 22:57:16 CST 2006
On 10/30/06 10:25 PM, "Libby Huber" <libbyhuber at gmail.com> wrote:
> I am trying to run a program created using Runtime Revolution 2.5 but I
> cannot get my stack to display text from file in a designated field. I have
> compared my scripts (open and read file commands) to other working stacks,
> and I have also successfully opened my text file using another stack. But I
> cannot get the stack I have created to display items from my file. The stack
> and file are saved in a folder together, and I've checked the filepath
> Any suggestions?
--try one of the below techniques to discover the 'glich'
if you are using the form I use almost all the time:
put varA into url ("file:"&myRootfolder()&"savedData.txt")
get the filename of this stack
set the itemDel to "/"
return (item 1 to -2 of it)
if not there is a folder fullPathEyeWant then answer "oops "& cr &
Try to write a string "some enchanted evening" to the path you have
specified, then immediately read it back into a variable.
answer file "the file I want"
put it into fullPathEyeChose
put fullPathEyeChose &cr& fullPathEyeWant into msg
put cr & ( fullPathEyeChose is fullPathEyeWant) after msg
make sure the file is not empty!!!!
Hope this helps.
More information about the use-livecode