reading a file

Scott Rossi scott at tactilemedia.com
Sun Sep 21 18:18:59 EDT 2014


Larry -- have you tried:

  open file thisFile for read


Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 9/21/14 3:02 PM, "larry at significantplanet.org"
<larry at significantplanet.org> wrote:

>Hello,
>
>Could anyone please explain why the following script does not work?
>(It puts into the field the name of the selected file and not the
>contents of the file.
>
>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
>
>
>
>Thanks,
>
>Larry
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode






More information about the use-livecode mailing list