Read from file, then display results
Marian Petrides
mpetrides at earthlink.net
Thu Jul 8 01:18:30 EDT 2004
Okay. Thanks. I'm a bit obtuse at this late hour....
(Repeat after me: go to bed, go to bed ;-)
M
On Jul 8, 2004, at 1:20 AM, Mark Brownell wrote:
> on 7/7/04 9:57 PM, Marian Petrides at mpetrides at earthlink.net wrote:
>>> on mouseUp
>>> global gFilePath
>>> answer file "select a file"
>>> if it contains ".txt" then
>>> put URL ("file:" & it) into AddListContents
>>> put it into gFilePath
>>> else
>>> answer " Not a text file"
>>> exit mouseUp
>>> end if
>>> end mouseUp
>> Your second example appears, instead, to be an example of how to WRITE
>> to a file. Or am I simply befuddled at this late hour (nearly 1 AM, my
>> time)??
>>
>> M
>
> This part is an open file handler that is different from write to or
> read
> from methods. I just added the save method for the heck of it using a
> global
> variable to save to the gFilePath without opening a file selection
> window
> first. Just showing you stuff... look at "answer file" and "ask file"
> in the
> docs.
>
> Mark
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list