can't import from file in OSX?
Michael Hasak
mphasak at hotmail.com
Fri Feb 21 19:00:01 EST 2003
The source of my extreme bafflement is the code snippet below. I believe
this is the proper way to read text from a file and have it accessible in a
text field, but I don't see any sign that the file read has occured, and
defintely don't get the text in my field.
The first two lines are commented out, previous attempts; the current
attempt is the last two lines. None of them have worked.
--put URL "file:~/Desktop/radmindgui/ps_output" into field theOutput
--set the text of field theOutput to the text of URL "file:/etc/bashrc"
put "/Users/guest/Desktop/radmindgui/ps_output" into theFile
get the fifth line of URL "file:/Users/guest/Desktop/radmindgui/ps_output"
put it into field theOutput
I tried this with an http URL, and it worked fine. The files in question
have been checked for the proper permissions (world-readable). I even tried
creating a new stack and testing the code in there. Don't see any clues
from previous posts to the list.
Can anyone see what I'm doing wrong?
Thanks,
Mike H
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the use-livecode
mailing list