reading a file
Mark Schonewille
m.schonewille at economy-x-talk.com
Sun Sep 21 18:16:04 EDT 2014
Hi,
There is no file quote & it & quote, but there is a file it. Quotes are
used to define a string in a script. If you put quotes in a variable,
they become part of that string. The following script will work:
on mouseUp
answer file "Select a file."
put it into thisFile
open file thisFile
read from file thisFile until EOF
put it into field myOutput
close file thisFile
end mouseUp
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Installer Maker for LiveCode:
http://qery.us/468
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
LiveCode on Facebook:
https://www.facebook.com/groups/runrev/
On 9/22/2014 00:02, larry at significantplanet.org wrote:
> on mouseUp
>
> answer file "Select a file."
>
> put quote & it & quote into thisFile
>
> open file thisFile
>
> read from file thisFile until EOF
>
> put it into field myOutput
>
> close file thisFile
>
> end mouseUp
More information about the use-livecode
mailing list