Re: read write basics
Re: read write basics
- Subject: Re: read write basics
- From: Michelle Steiner <email@hidden>
- Date: Thu, 5 Jul 2001 12:23:07 -0700
On 7/5/01 8:26 AM, monk <email@hidden> wrote:
>
> open for access file "myhd:desktop folder:new source" with write permission
>
>
how do i call any user's hd (a variably named hd), as in myhd above then?
set the FileID to open for access (choose file) with write permission
read the FileID --if necessary
--write data to the fileID
close access the FileID
>
> copy (choose file) to _source
>
> read _source as list using delimiter space
>
> write result to file "myhd:desktop folder:new source"
>
> close access file "myhd:desktop folder:new source"
>
>
>
i am unclear from the ref, if i should 'close for access' the variable
>
'_source' as well, or is it always the file?
You didn't open _source, so you don't need to close it.
>
also, when i 'choose file', i
>
get the contents available, is that in a way like 'open', if so do i have to
>
call a 'close' on the file chosen?
When you choose file, you do not get the contents; all you get is a
reference to the file. Reading the file gets its contents.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------